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 have made a strategy in the strategy wizard and i wanted to add an 2nd contract with a higher target, but when i add the target it wont work, aldough the code seems to be right (i can adjust the settings when starting up the strategy, and no errors occur.)
What i did was simply copying the current target and stop and made it target 2 and stop 2. can someone tell me what i need to do more?
I've watched big mikes advanced strategy coding video but if i do his part of coding for the stops NT is giving errors all over the place.
Can you help answer these questions from other members on NexusFi?
Please supply screen shots of the code working (print statements for entrys please), both versions with and without the second target, and is there any errors in the compile or the control centre log???
I will have to watch for comment, but I 'think' you can only use 1 value for StopLoss in NT (without using custom code) ... you can check this out if you swap around the values for Stop1 and Stop2 and see which gets used. ...
Are you trying to setup 2 orders with different profit targets and stop loss? If so you need to give each entry order a name within the double quotes when you call EnterLong and then associate that order name with the respective exit order calls to use target1 and stop1, target2 and stop2. This will associate your different PT and SL with each order.