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: 21
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: 21
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: 17781
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: 21
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
 
Posts: 10
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: 17781
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: 17781
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Previous

Return to Custom Indicators

Who is online

Users browsing this forum: Google [Bot] and 11 guests