Trading_commands

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.

Moderator: admin

Re: Trading_commands

Postby 7000306337 » Fri Jan 12, 2018 10:32 am

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.
7000306337
 
Posts: 64
Joined: Sat Jul 15, 2017 9:48 am

Re: Trading_commands

Postby 7000306337 » Fri Jan 12, 2018 5:16 pm

Forgot to mention that the avg INDICATOR is required to be displayed, .... to choose the threshold avg that will trigger the exit.
7000306337
 
Posts: 64
Joined: Sat Jul 15, 2017 9:48 am

Re: Trading_commands

Postby Apprentice » Sat Jan 13, 2018 7:14 am

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.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Trading_commands

Postby 7000306337 » Mon Jan 15, 2018 12:05 am

Thank you very much for your precious time.
Generous as ever.
Always much appreciated.
7000306337
 
Posts: 64
Joined: Sat Jul 15, 2017 9:48 am

Re: Trading_commands

Postby chai88888 » Fri Jan 19, 2018 12:23 am

can you add a command where you only close all sell and all buy. thanks
chai88888
FXCodeBase: Graduate
 
Posts: 228
Joined: Tue Jun 07, 2016 7:18 am

Re: Trading_commands

Postby Apprentice » Sat Jan 20, 2018 4:14 pm

Your request is added to the development list under Id Number 4015
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Trading_commands

Postby Apprentice » Sat Jan 20, 2018 4:26 pm

Long / Short option added.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Trading_commands

Postby chai88888 » Sun Jan 21, 2018 12:03 pm

thank you very much
chai88888
FXCodeBase: Graduate
 
Posts: 228
Joined: Tue Jun 07, 2016 7:18 am

Re: Trading_commands

Postby Apprentice » Mon Feb 05, 2018 6:49 am

The Strategy was revised and updated.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Trading_commands

Postby 7000306337 » Sat Feb 10, 2018 8:27 am

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,
7000306337
 
Posts: 64
Joined: Sat Jul 15, 2017 9:48 am

PreviousNext

Return to Custom Indicators

Who is online

Users browsing this forum: Baidu [Spider], Majestic-12 [Bot] and 54 guests