how to code takeprofit and stoploss?

Forums ProRealTime English forum ProOrder support how to code takeprofit and stoploss?

Viewing 10 posts - 1 through 10 (of 10 total)
  • #39546

    how do i write a code  to take a profit on long when prices moves up 250 pips

    and on short 250 pips and then stop loss on both when prices moves against the trade 250.

     

    ratio is 1:1

    #39554

     

    #39558

    Thank you very much

    #39562

    grahal, i am still having an error on my program, can you please assists

     

     

    #39565

    You’ve got two IFs and 4 EndIfs … is that the problem?

    Also please use the <> Insert PRT Code button to add code to this page as then your code will be formatted and also in colour and will then be so much easier to read 🙂

    1 user thanked author for this post.
    #39646

    GraHal is right, your 2 ENDIF at lines 19 and 37 should not be present.

    #39675

    Thanks guys, now is perfect. I appreciate your help.

     

    #39681

    Also it should be (target not stop) my mistake, sorry.

     

    #39691

    What Market and Timeframe is this Strategy optimised for please CHIFHE? I’m developing an affinity for it now! 🙂

    Thanks
    GraHal

    #39698

    is SA40 Grahal, I was doing trial and error on it. May be you can help to achieve more that 65 % on back testing it. is a 2hrs time frame.

     

    Regards

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

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