Quote:
Originally Posted by lcfxtrader
I started tonight with a new account testing the 6 majors with lot size set to .1, increment 0, next trade 50, TP $50, SL $1000. I will post results at the end of week. Is the time frame set to minutes (60m = 1hr)?
|
Lets hope the test goes well Icfx.
The Timeframe parameter controls which time frame the moving average is pulled from, regardless which chart you are attached to.
I coded to use numbers 1-7, that way if someone wanted to quickly run time frames through the optimizer, they could do so.
Here are their values:
Code:
if (Timeframe==1){MA_Timeframe=1;}//(1 min)
if (Timeframe==2){MA_Timeframe=5;}//(5 min)
if (Timeframe==3){MA_Timeframe=15;}//(15 min)
if (Timeframe==4){MA_Timeframe=30;}//(30 min)
if (Timeframe==5){MA_Timeframe=60;}//(1 hr)
if (Timeframe==6){MA_Timeframe=240;}//(4 hr)
if (Timeframe==7){MA_Timeframe=1440;}//(1 day)
Hope that helps.