Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
I tried to transform a signal into a generic function and reuse it into a signal. It seemed to work, but, after some updates in OS, I am not able to make it work anymore (the same signal and the others, meanwhile, I wrote). Maybe some name conflict (variable …
RE: Strategy Events
[My setup is not ready not sure if this will work on TriggeredOrder, but]
...
by Xyzzy » 14 Sep 2017 "An update: I discovered that the second function won't work during backtesting since the FilledOrderAction event is only raised during live trading. Here's an alternative function that seems to work better:"
Variables:
Positions(0);
If Time = Sess1EndTime then begin
_EntriesToday = 0;
end;
Positions = PosTradeCount(0);
If Positions > Positions[1] then begin
_EntriesToday += 1;
end;
// *** doNOT use the file attached if not a programmer
// reversed engineering for programmers only
// all about mechanics and influence eg !From Strategy To Broker MP Synchronizer!
// line 57: if broker_mp <> inner_mp then begin
// AHR: means we are inner
// pls add inner_AHR in vars
// AHR: oh, apps – everyone is entitle to _get_tick_count
// AHR: the inner_AHR is added to differs state, correction state, place correction order, TimeOut
// result in inner_AHR is backtesting else FilledOrderAction is live
// attached !From Strategy To Broker MP Synchronizer! As a text file named TestSignalSync.ahr
// hum, my best wishes to Broker :0)