yo,
here's my code :
The problem is, it never takes order !
why ?
thanks in advance
Maybe because Moyenne1 is never equals to Moyenne2 ;-)
Maybe because Moyenne1 is never equals to Moyenne2 ;-)
And even if it is equal it may not be ;-) Can price != price ?
Does it try and take orders and fail ? What are Function return values ? How do I use them ?
And even if it is equal it may not be ;-) Can price != price ?
Does it try and take orders and fail ? What are Function return values ? How do I use them ?
I knew you were going to link without my having to get it :-D
how could it never been equal ?
Read this and you will find out: Can price != price ?
Also if the cross is just before or just after a Bar the values at the Bar will not be equal.
moving avering is a bar too ?
The MAs are only calculated for each bar, not between bars . . .
Bar # | 3 | 2 | 1 | 0 |
---|---|---|---|---|
MA1 | 1.5 | 1.6 | 1.7 | 1.9 |
MA2 | 1.7 | 1.7 | 1.6 | 1.4 |
These 2 MAs have crossed between Bars 1 & 2 but the values are not equal at any of the Bars.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
yo,
here's my code :
The problem is, it never takes order !
why ?
thanks in advance