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 » Mon Oct 23, 2017 7:11 pm

Thank you very much in advance for your awesome mentor,

In STRATEGIES
local tk, H0
function ExtUpdate(id, source, period)
if id==tickSourceID then tk = source[period] end
if id==barSourceID then H0 = source.high[period] end

-- now every tick we can compare tick price with bar.high price.
end

Is there an equivalent way In INDICATORS to compare tick price with bar prices ?
7000306337
 
Posts: 16
Joined: Sat Jul 15, 2017 9:48 am

Re: Trading_commands

Postby Apprentice » Tue Oct 24, 2017 4:02 am

Sure, if you use core.host:execute("getSyncHistory" do get your price data.
This is the case with most MTF MCP indicators.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 17510
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Trading_commands

Postby 7000306337 » Tue Nov 21, 2017 10:42 am

Thank you very much in advance for your awesome mentor.

Is it possible to have a STRATEGY or an INDICATOR applied to MULTIPLE instruments?
(To eliminate having multiple instances of the same STRATEGY or INDICATOR applied to each instrument)

Much appreciated,
7000306337
 
Posts: 16
Joined: Sat Jul 15, 2017 9:48 am

Re: Trading_commands

Postby Apprentice » Wed Nov 22, 2017 5:14 am

Sure. Strategy can trade on different currency pairs.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 17510
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Trading_commands

Postby SirOrigami » Thu Nov 30, 2017 6:53 pm

Yeah, Move stop to breakeven +x pips would be awesome
SirOrigami
 
Posts: 7
Joined: Fri Nov 24, 2017 2:48 pm

Re: Trading_commands

Postby Apprentice » Sat Dec 02, 2017 5:51 am

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

Previous

Return to Custom Indicators

Who is online

Users browsing this forum: Majestic-12 [Bot], Yahoo [Bot] and 10 guests