Here you can post and download custom indicators. PLEASE: Do not start topics unless you are posting your own indicator, they will be moved to appropriate section even if you do.
in Prepare() You have to call the source on different instruments See Two Instrument Strategy Template.lua viewtopic.php?f=28&t=2712 You will have to replace Offer in valuemap.OfferID = Offer; with the appropriate instrument name.
But first U will have to create array will all available instruments, and do this checks for all of them.
I can not thank you enough for your valuable coaching and mentor.
Is there a way to find out the time a STOP or a LIMIT was executed? (or any other way to same effect)
The reason being: Once a STOP or LIMIT is executed, I want to wait for the rest of the candle to complete and close before I enter() a new position. To prevent an endless ping-pong enter()-exit() for the rest of the candle.
For example if I`m on an H1 time frame and: an enter() was executed at 11:xx o`clock and exit() was executed at 12:xx o`clock I do NOT want to enter() any new positions till the 13:00 o`clock candle starts. Otherwise I`ll have the ping-pong situation since both the enter() and exit() conditions do exist simultaneously till the end of the 12:00 o`clock candle.