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)
there s a way to set stoploss and profittarget using STOP and LIMIT order ?
for example i would like to do something like this:
if ( marketposition = 0 and condition4 and condition5) then BEGIN
buy ("Long EURUSD") 100000 contracts next bar at open;
sell ("sell SL 1 ") 100000 contracts next bar at C-stoploss1 stop;
sell ("sell TP 1 ") 50000 contracts next bar at C+takeprofit1 limit;
sell ("sell TP 2 ") 50000 contracts next bar at C+takeprofit2 limit;
END;
Using 1 stoploss and 2 takeprofit.
Thank you very much about all answer
No Erocla
Can you help answer these questions from other members on NexusFi?
Yes, you can do this. However with your MC would close out the whole position at your target and ignore the contracts.
You just need to slightly modify your code this this and it should work fine:
You might have to change some settings to allow more than trade per bar or in the same direction if you only see one entry. Another thing to consider is using intrabar order generation so your stops and targets are available directly after the entry.
You are welcome. IOG is a more complex task when dealing with signals. For example orders that are specified at "next bar" become available at the next tick. So when you specify
Buy next bar Close limit;
This would mean send a limit order for the next tick using the value for close of the current tick.
If you haven't used it before there probably is no reason for that with your signal then.
Regards,
ABCTG
no erocla
Thank you very much,
what happen using IOG ? i never used it before.
Close is Tick or still remain close ?
My systems works on close price, i've to "ref" them to 1 bar ago ? (Close[1] , atr(14)[1] etc..).