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
Initially asked and answered. What didn't you understand? What value is stored in buffer 1?
That's how I tried but it open only sell trades. Why it doesen't open a buy trade ? The indicator shows an UPTrend
At the code of the indicator :
That's how I tried but it open only sell trades. Why it doesen't open a buy trade ? The indicator shows an UPTrend
At the code of the indicator :
Because downtrend is a double, not a boolean variable? Same for uptrend
And now ?
Still not works
And now ?
Still not works
They are doubles, not booleans
Try
They are doubles, not booleans
Try
Thank you, I tried this many times but I had a small mistake ! I solved it like this :
And it works but now I have another problem, the EA sets every tick the var downtrend to iCustom(NULL,0,"super-trend",1,0); and if I make backtests it runs very slowly. How can I solve that ? Is there a way ? Maybe if a candle closes ?
Thank you, I tried this many times but I had a small mistake ! I solved it like this :
And it works but now I have another problem, the EA sets every tick the var downtrend to iCustom(NULL,0,"super-trend",1,0); and if I make backtests it runs very slowly. How can I solve that ? Is there a way ? Maybe if a candle closes ?
Try to inspect the logic and see where it can be made more efficient.
What if you were a shopkeeper and you had the routine
If I have less than 10,000 eggs in stock and it is a Monday, Wednesday or a Friday, Order enough eggs to make up the shortfall.
Would you count the eggs on a Tuesday?
Your first 2 main if condition blocks have
in common.
So, like the shopkeeper you can cut a lot out of the routine by checking OrdersTotal() first
Great idea, thank you very much !! It works perfectly. Thanks to all you guys