As the title, can anyone help me? I tried to code, but it not work. :(
- Help to auto close order when new bar opens
- Please help to open order on current timeframe and close order on another timeframe
- Please help to auto close order
int _start=0; int no_of_bars=5; double price_high = iHigh(Symbol(), Period(), iHighest(Symbol(), Period(), MODE_HIGH, no_of_bars, _start ) ); double price_low = iLow(Symbol(), Period(), iLowest(Symbol(), Period(), MODE_LOW, no_of_bars, _start ) );
szgy74:
It works. Thank you so much ^^
tvh168: As the title, can anyone help me? I tried to code, but it not work. :(
- Why didn't you post your code, so you would learn?
int _start=0; int no_of_bars=5; int iHH = iHighest(NULL,0, MODE_HIGH, no_of_bars, _start), iLL = iLowest(NULL,0, MODE_LOW, no_of_bars, _start); double price_high = High[iHH]; // Don't use unnecessary function calls double price_low = Low[iLL]; // when you have direct access.
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