Page 5 of 8

Re: Trading_commands

PostPosted: Fri Jan 12, 2018 10:32 am
by 7000306337
The reason being :
If I apply this indicator to each chart of say 20 instruments it becomes a big mess.
Especially every time I modify it.

Re: Trading_commands

PostPosted: Fri Jan 12, 2018 5:16 pm
by 7000306337
Forgot to mention that the avg INDICATOR is required to be displayed, .... to choose the threshold avg that will trigger the exit.

Re: Trading_commands

PostPosted: Sat Jan 13, 2018 7:14 am
by Apprentice
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.

Re: Trading_commands

PostPosted: Mon Jan 15, 2018 12:05 am
by 7000306337
Thank you very much for your precious time.
Generous as ever.
Always much appreciated.

Re: Trading_commands

PostPosted: Fri Jan 19, 2018 12:23 am
by chai88888
can you add a command where you only close all sell and all buy. thanks

Re: Trading_commands

PostPosted: Sat Jan 20, 2018 4:14 pm
by Apprentice
Your request is added to the development list under Id Number 4015

Re: Trading_commands

PostPosted: Sat Jan 20, 2018 4:26 pm
by Apprentice
Long / Short option added.

Re: Trading_commands

PostPosted: Sun Jan 21, 2018 12:03 pm
by chai88888
thank you very much

Re: Trading_commands

PostPosted: Mon Feb 05, 2018 6:49 am
by Apprentice
The Strategy was revised and updated.

Re: Trading_commands

PostPosted: Sat Feb 10, 2018 8:27 am
by 7000306337
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.

Sincerest Gratitude,