The indicator is called NCEP2, which is a product of EOT.
I have been testing with Calc at Bar Close on false. I have adjusted the indicator to calc on previous bar. The indicator does not plot correctly and does not trigger orders properly now.
I therefore need to Calculate on Bar Close to be True.
Order is placed correctly, but if price moves away more than 3 ticks ( WITHIN THE CURRENT BAR ) it will no cancel order. ie - CALC on Bar CLOSE needs to be true.
Is there any other method of creating 2 seperate strategies and linking them. 1 with COBC = true and 2 with COBC = false.
It is practically impossible to have both in the same strategy, unless im missing something.
Thanks for the help though. Its been greatly appreciated.
Last edited by jthom; March 24th, 2010 at 03:29 AM.
The following user says Thank You to jthom for this post:
I completely understand your frustration, as I've been there, but I have to stay with my original suggestion. When COBC is set to true, Close = close of the current bar, which is why your cancel order code isn't working properly. When COBC is set to false, Close becomes current price, which is what you need for your cancel code. Since I don't think it's possible to have part of the strat set to true and part set to false, I still suggest using FirstTickOfBar and setting your indicator back a bar.
I went to the site and saw that this isn't a free indicator, so I can understand your not wanting to post. Unfortunately, however, it's hard to know exactly what to do without seeing it. Maybe you can x-out the words and just leave the numbers? So, turn "if (CrossAbove(EMA(20), EMA(50), 0))" to "if (XXX(XXX(20), XXX(50), 0))".
I saw that you tried setting it back one bar and I really do get what you're saying. My original suggestion SHOULD have worked. Maybe someone else will know better, but I don't think I'll be able to come up with anything else without seeing it. Let me know if you'd like me to try that.
The following user says Thank You to dsraider for this post:
Thanks for your advice. Yeah if you set the tradedir for the indicator it will calculate for previous bar, but wont plot an arrow which is required for strategy. Also my PC nearly fried 3 times setting bar close to false. Everything you stated should of worked in theory and I completely understand it. Ill just have to manually exit the order if price moves more than 3 - 4 ticks away.
Greatly appreciated for your help. It is amazing how helpful ppl are hear. Posting something similar on the NT Forums results in "See our Ninjascript Consultants."
Sorry I couldn't be of more help, jthom. Best of luck on the NT forum. I have a strat with several indicators in it with COBC set to false and I really haven't noticed my computer dragging so I hope there's not another issue at play here.
dsraider, these indicators are closed codes (.dlls) usualy, so it makes no sense to post the stuff.
jthom, the only additional idea i have is : ask Bill at EOT what the problem with the indicator is if used on cobc = false -- maybe he has another idea.
but if the indicator is the main signal-giver - maybe it makes no sense having flashing signals come and go all the time during on bar - especialy with rangebars wich can last longer time.
EOT so far as i know usualy wait for barclose to trigger their entrys.