Yes, example (Да, здр цдром):
ma[m][0]=iMA(sy,per[m],shift,0,2,4,0); ma[m][1]=iMA(sy,per[m],shift*opt,shift-opt,2,2,0); ma[m][2]=iMA(sy,per[m],shift*opt,shift-opt,2,3,0); ma[m][3]=iMA(sy,per[m],shift,0,2,4,1); ma[m][4]=iMA(sy,per[m],shift*opt,shift-opt,2,2,1); ma[m][5]=iMA(sy,per[m],shift*opt,shift-opt,2,3,1); if(ma[m][0]>ma[m][2] && !(ma[m][3]>ma[m][5]) && !(ma[m][0]>ma[m][1])) lvl[m]=6;//ranged buy else if(ma[m][0]<ma[m][1] && !(ma[m][3]<ma[m][4]) && !(ma[m][0]<ma[m][2])) lvl[m]=7;//ranged sell else if(ma[m][0]>ma[m][1] && !(ma[m][3]>ma[m][4])) lvl[m]=4;//dependable ranged sell+dependable buy else if(ma[m][0]<ma[m][2] && !(ma[m][3]<ma[m][5])) lvl[m]=5;//dependable ranged buy+dependable sell else if(ma[m][0]>ma[m][3] && ma[m][3]>ma[m][4]) lvl[m]=2;//==4 else if(ma[m][0]<ma[m][3] && ma[m][3]<ma[m][5]) lvl[m]=3;//==5 else if(ma[m][0]<ma[m][3] && ma[m][3]>ma[m][4]) lvl[m]=0;//dependable trend/ranged buy else if(ma[m][0]>ma[m][3] && ma[m][3]<ma[m][5]) lvl[m]=1;//dependable trend/ranged sell
Approach is individual observation. The more computer counts(/decide) more is automatic and not dependable by the programmer.
This is just example which I used from old files, found it archive folder (<2005), I used it only as analyzer.
Really thanks, I try to understand..
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hello..
I work with the distance between price and a moving average...
But, there are more ways to work correctly with ma's ??
Thanks, for your contributions.