Value of point sp500 in code

Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • #74201 quote
    pancho0423
    Participant
    New

    Hello,

    I have programmed a system for sp500, it´s possible to tell the program value point is 1 dollar instead of 50?

    The idea is to use it with cfds, no with futures

     

    thanks

    #74207 quote
    GraHal
    Participant
    Master

    pipvalue or pointvalue ??

    It’s only 50 if you are using the $50 Contract.

    But if you use pointvalue in your code then it will be correct for whichever Contract you are using.

    pancho0423 thanked this post
    SP500.jpg SP500.jpg
    #74209 quote
    pancho0423
    Participant
    New

    Thanks for reply Grahal,

    On sp500 1point= 50 $ ( i have pasted an image)

    For example, in the next code, how can i change de pointvalue ? i want 1point = 1 dollar

    I´ve tried the function pointvalue, but i dont know where to put it.

    Or how to configure the graphic

    thanks .

     

     

    indicator= rsi[14](close)
    
    c1= indicator < 30
    IF NOT LongOnMarket AND c1 THEN
    BUY 1 CONTRACTS AT MARKET
    ENDIF
    
    c2= indicator>70
    If LongOnMarket AND c2 THEN
    SELL AT MARKET
    ENDIF
    50.png 50.png
    #74218 quote
    GraHal
    Participant
    Master

    It’s only 50 if you are using the $50 Contract.

    You need to choose the $1 Contract … see green arrow on attached,

    1

    pancho0423 thanked this post
    sp-2.jpg sp-2.jpg
    #74222 quote
    pancho0423
    Participant
    New

    That’s great ! thank you very much ! but I don t understand why that option does not appear in my program. it´s prorealtime or broker graphics?

    #74223 quote
    pancho0423
    Participant
    New

    it´s no option cash for my

    #74225 quote
    GraHal
    Participant
    Master

    Picture tells a thousand words so why don’t you post a screen shot of what have as options to select same as I did?

    pancho0423 thanked this post
    #74226 quote
    pancho0423
    Participant
    New

    Yes, of course. I think maybe you work with IG and for that you have diferents graphics than me ?

    1-1.png 1-1.png 2.png 2.png
    #74230 quote
    Vonasi
    Moderator
    Master

    The identifier is SPTRD so trying to type that in the search box. I often find that SP500 does not bring up the results I expect.

    pancho0423 thanked this post
    #74236 quote
    pancho0423
    Participant
    New

    Ok, I don´t find that kind of graph inside prorealtime. I think it´s necessary to have it from a connection to a broker like IG. I think there will be no way to change that option through code.

    However, very grateful for your answers !!!

    #74239 quote
    GraHal
    Participant
    Master

    Your screenshot shows NASDAQ US 500.

    My screenshot shows US 500.

    Did you type SPTRD in the search box?

    I find (same as Vonasi said) … if I don’t type in SPTRD I get loads of unwanted markets, like NASDAQ US 500 🙂

    #74240 quote
    pancho0423
    Participant
    New

    I tried type SPTRD, CASH, US500 in the search box and nothing.

    1-2.png 1-2.png 2-1.png 2-1.png
    #74243 quote
    GraHal
    Participant
    Master

    Have you tried under Display, Lists, Major Indices as attached … what do you get??

    sp-3.jpg sp-3.jpg sp-3-1.jpg sp-3-1.jpg
    #74246 quote
    pancho0423
    Participant
    New

    With Major indices i have this.

    Grahal, have you connected prorealtime with IG ?

    I think the problem it´s my broker can not connect to prorealtime

    1-3.png 1-3.png
    #74249 quote
    GraHal
    Participant
    Master

    Yes I’m with IG, who are you with?

    But anyway you have S&P 500 on your list … 2nd from bottom!!!!

    pancho0423 thanked this post
Viewing 15 posts - 1 through 15 (of 16 total)
  • You must be logged in to reply to this topic.

Value of point sp500 in code


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
pancho0423 @pancho0423 Participant
Summary

This topic contains 15 replies,
has 3 voices, and was last updated by pancho0423
7 years, 8 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 06/23/2018
Status: Active
Attachments: 10 files
Logo Logo
Loading...