I have found that every one of the stategies that come with esignal and regard ma crossovers all have the same fault. Thet all buy or sell the open of the current bar instead of the next bar.
Since i am relatively new here i was wondering is this problem has been noticed in the past and addressed. The problem is easily fixed by changing THISBAR to NEXTBAR.
Also if i want to place two different emas in one study when i call them do i use study1 for second one
e.g
var study= new MAStudy(10,0,Close, MAStudy.EXPONENTIAL);
var study1 = new MAStudy(20,0, Close, MAStudy.EXPONENTIAL);
now is it possible for a strategy to buy or sell right at the level of the 10ema during the bar which it hits the ema as opposed to entering on the open of the next bar.
The basic idea here is to sell when the bar hits the 10ema as long as the 10ema<20ema when the 10ema is it.
ive got a good handle on how to program stops and profit objectives it just entries that keep giving me difficulties
Thanks again everyone for all your help
Yoda
Since i am relatively new here i was wondering is this problem has been noticed in the past and addressed. The problem is easily fixed by changing THISBAR to NEXTBAR.
Also if i want to place two different emas in one study when i call them do i use study1 for second one
e.g
var study= new MAStudy(10,0,Close, MAStudy.EXPONENTIAL);
var study1 = new MAStudy(20,0, Close, MAStudy.EXPONENTIAL);
now is it possible for a strategy to buy or sell right at the level of the 10ema during the bar which it hits the ema as opposed to entering on the open of the next bar.
The basic idea here is to sell when the bar hits the 10ema as long as the 10ema<20ema when the 10ema is it.
ive got a good handle on how to program stops and profit objectives it just entries that keep giving me difficulties
Thanks again everyone for all your help
Yoda
Comment