Money management coding help please

Forums ProRealTime English forum ProOrder support Money management coding help please

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

    Hello all

    I have an idea for a money management plan, but am not able to code it.

    Would appreciate some assistance :). ATR=AverageTrueRange[14]

    1. I take a position on a daily bar – 2 lots Long (or Short)
    2. I place a TP for 1 lot at ATR*0.25  and and the other at ATR *0.8
    3. I put a SL for 2 lots at AT4*0.25
    4. Close all open positions/cease all trading at 18:00

    The beauty of this is that your loss is limited, and if first TP is triggered we can allow the other 1 lot to run for the rest of the session (unless it is also triggered) and the worse case scenario would be a breakeven in PL if the SL is triggered.

    QUESTION – If I trigger the first TP, would the SL automatically go to down to 1?

    Hope I’ve explained it clearing enough – happy to clarify if needed.

     

     

    #9468

    Hi K12AN,

    ProOrder doesn’t let you exit parcial positions, I suggest you to start 2 systems with 1 contract and different profits.

    ANSWER – In 2nd case, if price reach to ATR*0.25 and should run to ATR*0.8, you can move stoploss to breakeven after first target is reached, and let the trade run.

    Best Regards!

    1 user thanked author for this post.
    #9978

    HI there,

    I need some help with coding money management, mainly position size. How to code position size for spreadbetting at ceratain % of available equity/ATR

    Thanks.

    #9985

    Adolfo has wrote a nice code snippet for money management position size calculation, here in the blog :

    http://www.prorealcode.com/blog/learning/money-management-prorealtime-code/

    #9988

    Thank you, Nicholas. Nice code, already backtesting.

     

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