Applying code only once

Forums ProRealTime English forum ProOrder support Applying code only once

Viewing 8 posts - 1 through 8 (of 8 total)
  • #244184

    How can I adjust the code below to trigger only once;

     

    #244188

    once per day or really once ?

    #244189

    once per day

    #244190

    if IntradayBarIndex =0 then
    flag=0
    endif

    // Definition of code parameters
    TIMEFRAME (DAILY)
    // Conditions to enter long positions only once
    IF low <= Average[5](close)and flag=0 then BUY 10 CONTRACT AT market flag=1 ENDIF

    #244191

    is that correct? fifi743

     

    #244192

    yes that’s it

    #244193

    Many thanks mate

    #244197

    How if I want to do the same strategy buying only once at the Weekly VWAP and Monthly VWAP and buying at any of the lower VWAP bands or selling at any of the upper VWAP bands either daily or weekly or monthly VWAP, I believe it works very well with gold.

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

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