![]() |
|
|||||||
| Indicator Development Support for the development of custom indicators using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Jun 2008
Posts: 146
Thanks: 0
Thanked 6 times in 4 posts
|
hi, would someone be good enough to look at this code and see if it's incorrect as the
signals seem inconsistent, lots of Sell arrows but no offsetting Buy arrows, then the reverse happens with a lot of Buy arrows but no Sell arrows also, is there a way to have the signals on the chart but not display the macd window ? thanks |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Dec 2011
Location: India
Posts: 3,286
Thanks: 580
Thanked 546 times in 541 posts
|
Hello tradr,
Thanks for writing in and I am happy to assist you. The condition you have set does not necessarily mean that the next signal will be always a reverse. This is particularly true since your code filters it with SMA 89 which is pretty smooth and doest changes/reverses easily particularly if the price is in a strong trend. To remove the MACD from the chart please delete the Plots in the initialize section of the code along with its corresponding properties. You are calculating the Macd and Ema in your code. Instead of calculating it you can simply call them as Code:
//call ema double fastEma = EMA(fast)[0]; //call macd dif double macdDiff= MACD(macdFast, macdSlow, macdSmooth).Diff[0];
Joydeep M.
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Jun 2008
Posts: 146
Thanks: 0
Thanked 6 times in 4 posts
|
hi Joydeep, thanks for your fast reply
should have stated I'm Not a coder and not the author of the indicator besides what you've already answered, and thanks for that, how could the indicator be improved to provide better signals, and would you please provide the code I'd need to change, and please explain where I'd need to change it thanks |
|
|
|
|
|
#4 |
|
NinjaTrader Customer Service
Join Date: Dec 2011
Location: India
Posts: 3,286
Thanks: 580
Thanked 546 times in 541 posts
|
Hello tradr,
The code is not meant to do what you are trying to do. Unfortunately we do not do custom coding. I would suggest you contact the original developer to further customize it as per your requirement. You can also contact any of our NinjaScript consultants to do it. You can get the list of our NinjaScript consultants from here http://www.ninjatrader.com/partners#...pt-Consultants
Joydeep M.
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Getting TS signals to someone else | Atomic | Automated Trading | 5 | 01-07-2010 06:42 AM |
| Script is running wild: buy - sell - buy - sell ... | BillCh | Automated Trading | 4 | 02-06-2009 01:01 PM |
| Josh: No buy signals in this strategy, why? | ju1234 | Strategy Development | 7 | 12-03-2008 05:26 AM |
| Remove Old Strategy Buy or Sell Signals | lawyse | Charting | 3 | 09-03-2008 08:11 AM |
| Still buy/ sell signals in my chart after removing strategy | FireFly | Strategy Development | 6 | 01-23-2008 01:51 AM |