Imminence:
Hello everyone,
1. I got stuck with a tiny issue... I work with 30m chart and I want to check if my last candle became the highest among last 20 candles in order to open BUY. For some reason this just doesn't work.
The tester returns the highest val..
if you were going to log the time based on your server time..
here's an example from the b-clock indi
double i; int m,s; m=Time[0]+Period()*60-TimeCurrent(); i=m/60.0; s=m%60; m=(m-m%60)/60; Comment( m + " minutes " + s + " seconds left to bar end");else wheres using the local time is best i would suppose
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 everyone,
1. I got stuck with a tiny issue... I work with 30m chart and I want to check if my last candle became the highest among last 20 candles in order to open BUY. For some reason this just doesn't work.
The tester returns the highest value only of the last tick of the test and simply doesn't want to check each candle... How should I fix it?
2. The second issue is I want to work only with candles not with ticks. When my order closes by SL it opens the new deal on next tick and I want it to wait until the current bar closes and then based
on assessment make signals. Is it possible? Don't say just to pick other testing option with open/closing points, because on real acount there are ticks and the EA will fail.
3. Finally, I want to i.e. open a position or close it 5 sec before candle closes (29.55, 59.55) based on indicators' assessment without waiting for the next tick, is it possible? The reason is I keep it as
it is in my buy signal, it waits for the next tick, which may not appear in the last 5 sconds and the moment is lost. The same goes for closing, because if the moment is lost the next signal for some
reason may appear after few more bars, which is extremely bad.
Thank you in advance :)