profit reduces by 33%

Forums ProRealTime English forum ProOrder support profit reduces by 33%

Viewing 15 posts - 16 through 30 (of 40 total)
  • #69132
    Leo

    Hello Léo

    I don’t understand : MaxX=MaxX=max(x,MaxX)

    could you explain me well detailed ??

     

    Copy paste problem. MaxX is a variable which store the maximum profit and when the profit is at 66% of the higher value it closes the trade.

    NOTE: always reset to 0 the MaxX when you open a trade

     

     

    #69133
    Leo

     

    Maybe like this

    #69148

    MaxX=MaxX=max(x,MaxX)

    Copy paste problem again Leo!

    #69153
    Leo

    Have you ever try to write a code from your mobile phone? No way!

    #69161

    Have you ever try to write a code from your mobile phone? No way!

    I’m one of those weirdo’s in life who doesn’t have a mobile phone. If someone needs to talk to me that badly they can phone my girlfriend. And as for everything else that a phone can do these days the engineer in me says that it is not the right tool for most of those jobs anyway – which I think you may have just proven.

    Must go as trying to add up my losses on my abacus.

    #69190

    thank you for your answer Leo I understand the purpose (( store the max profit) but there is something that I do not understand in the computer language of this line if someone can detail this formula for me to understand

    #69191

    The line should read

    It ensures that the value of MaxX remains at which ever is the highest value of the last highest MaxX and the new x calculated at this bar. This way the value of MaxX can only ever go up and not down.

    #69198

    I am back testing now, I will update the results

     

    alternate way of coding is

    x= time of the trade 1 initiated

    y=(Highest(2000)(high)- tradeprice)

    if ctime >= x and and   y>=30 then

    if close(1)<=  tradeprice+.667*y

     

    sell at market

    endif

    endif

    what is x? in terms for PRT code

    picture attached for x

    #69203

    After some testing I changed the code as follows (it seems to be working as expected):

    Give me some feedback.

    #69243

    Many thanks , code seems to be working well results attached.

    I will evaluate results and post updates

    1 user thanked author for this post.
    #69270

    I was looking for this Thread and  instinctively went to the ProOrder Support Forum … with all the coding support shouldn’t this be in that Forum?

     

    #69271

    Admin can move this thread to appropriate place

    #69273

    Right. I didn’t even realize that.

     

    1 user thanked author for this post.
    #69662

    I want introduce steps of trailing into the stop loss

    for steps I have modified code as follows, can you confirm whether this will work ? if not suggest me code changes

     

    #69663

    To write code, please use the <> “insert PRT code” button, to make code easier to read. Thank you.

    I’ll take a look at your code ASAP.

     

Viewing 15 posts - 16 through 30 (of 40 total)

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