Profile Picture

MACD and MACD trigger problem

Posted By TJNewt Last Year
Message
Posted Thursday October 13 2016
I am using both the MACD and the MACD trigger.  When comparing these two indicators with other stock charting programs, the MACD trigger doesn't
seem to be accurate.  The MACD is accurate and agrees with every other chart program out there, but the MACD trigger is not correct.  Am I doing something wrong?
I have used the MACD as the input to my MACDtrigger.   That doesn't seem give the correct results for MACDtrigger.  If I use Close as my input to MACDtrigger, it just follows the MACD exactly.  
Here is part of my code that initializes these indicators: 

public class MySymbolScript : MySymbolScriptBase

 MACD myMACD = new MACD(12,26);
 MACDTrigger trigger = new MACDTrigger(12,26); 
 
 public override void Startup()
 {
  // Perform initialization here.
  myMACD.SetInputs(Close);
  myMACD.ChartSettings.Color = Color.Blue;  
  myMACD.ChartSettings.ShowInChart = true;
  
  trigger.SetInputs(myMACD);
  trigger.ChartSettings.Color= Color.Red;
  trigger.ChartSettings.ShowInChart = true;
  
jbk
Supreme Being (924 reputation)Supreme Being (924 reputation)Supreme Being (924 reputation)Supreme Being (924 reputation)Supreme Being (924 reputation)Supreme Being (924 reputation)Supreme Being (924 reputation)Supreme Being (924 reputation)Supreme Being (924 reputation)
Posted Monday October 17 2016
Yes, I also noted that, seems like if the ie 9 period EMA of MACD is not there?


Similar Topics


Reading This Topic


2005-2017 © RightEdge Systems