Problem with stop loss optimization.

Forums ProRealTime English forum ProOrder support Problem with stop loss optimization.

Viewing 5 posts - 1 through 5 (of 5 total)
  • #74565

    Hi , I am trying to learn hoe to code a programme and I am having some issues. I would like to try optimization , but I am not sure where to put my variable for a stop.

    My variable is called “stop” ,

     

    I have tried replacing the 30 with [stop] but it does not work. Any help really appreciated for a newbie.

    #74567

    Please use the ‘Insert PRT Code’ button when putting code in your posts. I have tidied up your post for you.

    Also in future posts please try to use a topic title that means something rather than just ‘Basic coding help’. I will change your topic title to something more meaningful.

    You can not use the variable name ‘stop’ as it is an instruction used in PRT code already. Change it to SL or something similar.

    The last line of your code would then be:

     

    #74569

    Perfect , thanks. And will make sure I do it right next time,

    1 user thanked author for this post.
    #74578

    indicator7 = MACDline[12,26,9](close) indicator8 = ExponentialAverage[9](indicator7) c4 = (indicator7 CROSSES UNDER indicator8)   IF c4 THEN EXITSHORT AT MARKET ENDIF

    You sure you don’t want above to read CROSSES OVER ??

    Great username Forexsake btw! 🙂

     

    #74588

    Hi Grahal. I will have a look at that tonight thanks. I did think a lot about my username and I now use it for all forums etc.. I was quite impressed I came up with something a tad humorous..

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

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