code help on scalping

Forums ProRealTime English forum ProOrder support code help on scalping

Viewing 7 posts - 1 through 7 (of 7 total)
  • #128614

    I want to use this code for trading, the problem with this I need to monitor screen to see when the signal is generated

    https://www.prorealcode.com/prorealtime-indicators/scalping-with-parabolic-sar-and-fibonacci/

     

    I tried to added

    on line 42 as k1=1

    online 57 as k1=-1

     

    online 74 return sarfast coloured(r,g,0) style(point,5),sarslow coloured(0,195,255)  style(point,5),k1

     

    I am not getting error or on the other hand I am not getting any signal either

    This logic has excellent success ratio

     

    #128619

    It will just be drawing a line between -1 and 1 right at the bottom of the chart window so that is why you probably can’t see it. Remove all the graphical instructions and change the last line to RETURN k1 and then apply it as a separate indicator window and you will see it.

    You may want to add a k1 = 0 at the start of the code unless you just want it to be 1 or -1.

    #128630

    removed the graphs but it not giving the signal as expected

     

    #128645

    You haven’t really clearly explained what you expect it to do. Plus your image tells us nothing because most of the charts with the actual values is missing completely.

    If you just want the return to be a spike at +1 or -1 then you have to set the k1 back to zero at the start of the code.

     

     

    #128668

    please find attached the screen shot marked in blue. original code gives the signal at the time of blue marks.

    that signal is valid for some time may be 10 or 2o min

    I want a spike at the time of signal generated . I will place an order by looking at alert.

    if I can get entry , target and stop loss also i will good . I can write program

    as

    call the indicator and when k=1

    buy at entry+x limit

    sell at stop-x stop

    sell at target-x limit

    x= 1

     

    #128707

    You will need to have in your strategy keep placing pending orders at every bar anyway because they only last one bar – so you will need it to remain at +1 or -1 unless you are on market. To be honest you are best to code the indicator into your strategy. It will make it easier because you will need to switch the value to zero if a trade opens.

    My platform is closed at the moment and I’m a bit busy with other stuff otherwise I would just write it for you!

    #128762

    I think that this should do what you want as a strategy. I kept the ‘plotbar’ setting in the code so it only places pending BUY or SELLSHORT orders on the market for this number of bars after a set up has been identified.

     

Viewing 7 posts - 1 through 7 (of 7 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login