Forum

Max and Min shadow price in range 5

I have to get the maximum and minimum of a series of candles (hour candles) in a certain range, exactly from 5 to the left, a middle one (the one that must be the maximum or the minimum) and 5 to the right I found iHighest but from what I understand it allows you to get the maximum only backwards

Modify operation already open

#include<Trade\Trade.mqh> //--- object for performing trade operations CTrade trade; int SL = 10 ; int TP = 90 ; void buy( double a) { trade.Buy( 1 , NULL , 1 ,a+SL,price()+TP); } double price() { return SymbolInfoDouble ( _Symbol , SYMBOL_LAST ); } This is the code I use to get into operation

Conditions for entering into trade operations

I have to check some simple conditions before I can enter the trade (in a moment A I get a pivot, in a moment B the current value of the symbol exceeds the value of my pivot by X pips, in a moment C the current value of the symbol drops by Y pip the value of my pivot, so that A comes before B that