Highest high and highest low of previous days and of specific schedules

Forums ProRealTime English forum ProOrder support Highest high and highest low of previous days and of specific schedules

Viewing 15 posts - 16 through 30 (of 39 total)
  • #81862

    Just set a flag when the condition is met and then only open the trade when the time = your desired time and the flag is set. Reset the flag to zero when the trade is opened.

    #81953

    Hi Vonasi

    Thanks a lot for your guidance. It is working. I have another issue now.

    1. I have selected custom trading hours as 143000 to 210000.
    2. Condition satisfied at 210000, sets the flag=1. When flag =1 and time = 1430000, I am not getting any trade at 1430000. For that I have to select custom trading hours as 140000 to 210000. But I do not want to select that trading hours since other calculations of strategy (moving averaage, RSI) etc consider Intraday bar of 140000 to 143000 for calculation.which I do not want to consider for calculation and still  I want trade to open at 143000 only.

    So please advice solutions for this issue.

    Thanks.

     

    #82358

    Hi Vonasi/Nicolas

    Could you please guide me on my above query.

    Thanks.

     

    #82373

    Please add the new complete code with the “flag” you have coded.

    #82512

    Hi Nicolas

    Thanks for your reply. I did not understand your reply. Appreciate if you could clarify in detail or add corrections to my  earlier post dated 10/04/2018 at 6:44 PM to make me easy to understand.

    Thanks.

    #82521

    Nicolas is requesting that you post your modified code as it is far easier to find a coding problem with the code rather than just a description of what you expect it to do!

    Use the ‘Insert PRT Code’ button and cut and paste your code into the box and I’m sure someone will quickly spot why your strategy is not behaving as you expect it to.

    #82715

    Hi Vonasi/Nicolas

    Thanks for the clarifications. Please review below code and guide me.

    The trade open at 143000 only when custom trading hours are 140000 to 210000. I want trade to open at 143000 when custom trading hours are 143000 to 210000 based on condition satisfied a day before at 210000.

    Thanks. 

     

    #82913

    Hi Nicolas/Vonasi

    Could you please review my request and guide me.

    Thanks

     

    #82925

    The trade open at 143000 only when custom trading hours are 140000 to 210000. I want trade to open at 143000 when custom trading hours are 143000 to 210000 based on condition satisfied a day before at 210000.

    I’m not sure I understand what the problem is exactly from your description. I would suggest using GRAPH to show TIME so that you can see what the TIME of the candle when you want a trade to open actually is. I often prefer OPENTIME when writing a code as my brain seems to understand this better!

    #85611

    Hi Vonasi

    Please refer to below simple code to know the issue. This code is executed on Proreal time demo platform but nt on real Proreal time platform. All settings are same on both plaatforms.

    Could you please advice on solution to be able to execute simililar code in Real time Proreal time platform.

    Thanks

     

    #85615

    I can’t explain to you why it works on demo but not on real. I am not willing to test that strategy on my own real account as it could be very expensive! It works fine on my demo account.

    I would suggest sending a technical help request from your live account with a link to this topic within your description.

     

    #85624

    Hi Vonasi

    Thanks for your reply. I back tested above strategy both in Demo & real plat forms. It work in demo but not in real. It was not real auto trading testing. I back tested it to see the result.

    Can you back test real plat form. I am sure you will get some clue/solution.

    Meanwhile I will online check with technical team as you advised.

    Thanks.

     

     

    #85627

    Is above above  correct ? How can Time = 210000 and also Time = 143000 ??

     

    #85628

    GraHal he doesn’t check the two time values together, he just SETS a flag at that time, which will not be cleared till 203000 the next day, so at 143000 the next day FLAG will still be set.

    He wants to stay off trading just 30 minutes, from 203000 to 210000.

     

    #85631

    Ah gotcha Roberto, thank you!

    I looked for guidance on using Flags (after posting my query above) but it looks straightforward?

    I was mixing Flags up with … when a condition is true and would, for example, show as = 1 using GRAPH under an equity curve?

    Or do I still need to find / read up on Flags!? 🙂

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

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