only one trade per day on 3 strategies

Forums ProRealTime English forum ProRealTime platform support only one trade per day on 3 strategies

Viewing 15 posts - 46 through 60 (of 60 total)
  • #17811

    Your code seems right to me: each time the fast DEMA crosses over the slow DEMA, the system buy 5 contracts.

    #17812

    hi Nicolas ,
    but the systems does it only ONCE a time …

    #17815

    Just update your code with my last example about the bollinger bands and you’re ok.

    #17816

    sorry don’t understand what you mean …just to make sure… I do not like to have just one execution on the day… so always if the lines cross over the system should buy ……

    #17818

    hi niciolas , I found the solution ón my own thx,

    #21555

    hi Nicolas
    hi everybody ,
    is there a chance via proreal to do an strategie on EMA (Exponential moving average 21,55) on German Dax for example
    I found DEMA which seems not to be t he same
    thx
    regards

    #21607

    If you mean change your actual strategy of this post, with EMA instead, why do not make it yourself?

    #21610

    it s a generall question ….ema is not  available on proreal  ? … or am i wrong

    #21616

    Hi Dreif

    Strangely, although EMA is not available to add to a Chart; EMA is available using Fx when coding an Algo … see attachment

    GraHal

    #21651

    nicolas , not helpful your post … an answer with  yes or no would be more helpful  ….

    #21657

    @GraHam

    Just add a “Moving Average” from the indicator selection window and then change its calculation mode from there (5 or 6 possible options: from SMA to Hull MA, etc..)


    @dreif123

    If you need to code a strategy with EMA, this link will lead you to an exponential moving average instruction example.

    #21676

    Haha @Nicolas … I have selected EMA (as you say) several times, but forgot … I need to slow my brain when helping others, but thanks for the reminder 🙂

    #22740

    Hi

    I just wanted to say thanks. The ‘do only one trade a day’ has been something I’ve really struggled to code for ages and your suggestion (using lasttradedate and opendate) worked perfectly!

    Made my day!

    Andy

    1 user thanked author for this post.
    #22744

    Hi Andy

    Might you be able to share your code for ‘do only one trade a day’ please?  This would ‘close the loop’ and make this thread a useful future reference for the Community.

    Thank You
    GraHal

     

    #22764

    Sure,

    //I have this line at the beginning of my code after the defparams

    Once LastTradeDate = 0

    //Then this line after MyBuyCondition is defined

    ConditionTradedToday = LastTradeDate <> OpenDate

    //Then

    IF MyBuyCondition AND ConditionTradedToday THEN

    Buy 1 LOT AT MARKET

    SET TARGET PROFIT 10

    SET STOP LOSS 10

    LastTradeDate = OpenDate

    ENDIF

    //Hope that helps, this works on a 5m chart on wall street index on IG

    1 user thanked author for this post.
Viewing 15 posts - 46 through 60 (of 60 total)

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