i want to know the diffrence between Walk Forward Optimization, Optimizer and BackTest and what is the role of the parameters (it's not clair for me) and how can i use it in my case, Thanks
I use NinjaTrader 7.
protected override void OnBarUpdate()
{
if(Historical){
return ;
}
double value = MACD(fast, slow, smooth).Diff[0];
if((value>0 && OpenOrder==null){
{
EnterLong(10, "O_MACDL");
}
if((value<0 && old_value>value) && OpenOrder!=null )
{
if(OpenOrder.OrderState.ToString()=="Filled")
{
ExitLong("C_MACDL,OpenOrder.Name);
}
}
}
Comment