Maximim profit then stop trading on that day

Forums ProRealTime English forum ProOrder support Maximim profit then stop trading on that day

Viewing 4 posts - 1 through 4 (of 4 total)
  • #204049

    Hello to All,

    Could someone please help me with the line to add for a maximum points per day on this basic strategy and then stop trading?

    I have put the line:
    SET TARGET PROFIT DAY = 30

    However, I am not sure this is working fine.

    Thanks a lot !

    #204063
    JS

    Hi Mikael,

    Maybe you can add something like this…

    IF IntraDayBarIndex = 0 THEN
    TradeON = 1
    ENDIF

    IF (StrategyProfit – StrategyProfit[1]) > MaxPoints THEN
    TradeON = 0
    ENDIF

    IF MyConditions AND TradeON THEN
    … Buy / SellShorts

    ENDIF

    #204122

    Thank you for your help 🙂

    Will try to incorporate it.

    Mikaël

    #204168

    This code (written by Roberto)  blocks intraday trading once you reach a certain profit in euro (maxDailyProfit)

    maxDailyProfit = XXX
    floatingPosition = positionPerf*positionPrice/pointSize*pointValue
    once tradeAllowed = 1
    if intradayBarIndex = 0 then
    tradeAllowed = 1
    myProfit=strategyProfit
    endif
    if (strategyProfit + floatingPosition) >= (myProfit+maxDailyProfit) then
    tradeAllowed = 0
    endif

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

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