Drawing Two Horizontal Lines at a given time.

MQL5 Asesores Expertos

Trabajo finalizado

Plazo de ejecución 21 horas
Comentario del Cliente
Really quick service. Understood my requirements first time. I would really recommend the developer.
Comentario del Ejecutor
An Exelent customer. Good and quick contact. Definitely reccomend.

Tarea técnica

I have started this code to draw 2 horizontal line across the chart for the highest and lowest candle for 20 candles this works fine but I want to only find the highest and lowest candle between the times of 10am to 11am. At the start of a new day these lines need to reset ready for the new 10am - 11am lines.

I will add the buy signal and functions later.

void OnTick()  
  {
//  MqlDateTime TimeInformation[];
//  ArraySetAsSeries(TimeInformation,true);
//  double TimeData = CopyBuffer(Symbol(),Period(),0,20,TimeInformation);
  
   MqlRates PriceInformation[];  //create an array for the price data
   ArraySetAsSeries(PriceInformation,true);  //sort the array current candle downwards  
   int Data = CopyRates(Symbol(),Period(),0,40,PriceInformation); //fill the array with price data
   
   
   int HighestCandle;      //create variable for highest price
   double High[];           //create array for price data
   ArraySetAsSeries(High,true);     //sort array from current candle downwards
   CopyHigh(Symbol(),Period(),0,20,High);    //fill the array with the high prices
   HighestCandle = ArrayMaximum(High,0,20);  //get the highest candle price


if (TimeLocal() == ElevenAM)
         ObjectCreate(0,"High",OBJ_HLINE,0,0,PriceInformation[HighestCandle].high); //set object properties
         ObjectSetInteger(0,"High",OBJPROP_WIDTH,2);              //set object width
         ObjectSetInteger(0,"High",OBJPROP_COLOR,clrIndigo);      //set object colour
      
       //  ObjectMove (0,"High",0,0,PriceInformation[HighestCandle].high);    //move the line
 
 
   int LowestCandle;      //create variable for highest price
   double Low[];           //create array for price data
   ArraySetAsSeries(Low,true);     //sort array from current candle downwards
   CopyLow(Symbol(),Period(),0,20,Low);    //fill the array with the high prices
   LowestCandle = ArrayMinimum(Low,0,20);  //get the lowest candle price


 
         ObjectCreate(0,"Low",OBJ_HLINE,0,0,PriceInformation[LowestCandle].low); //set object properties
         ObjectSetInteger(0,"Low",OBJPROP_WIDTH,2);              //set object width
         ObjectSetInteger(0,"Low",OBJPROP_COLOR,clrIndigo);      //set object colour
      
         ObjectMove (0,"Low",0,0,PriceInformation[LowestCandle].low);    //move the line
 
   
Comment ("Highest candle: ",HighestCandle, "Highest Price ",PriceInformation[HighestCandle].high,"\n",
         "Lowest candle: ",LowestCandle, "Lowest Price ",PriceInformation[LowestCandle].low);



Han respondido

1
Desarrollador 1
Evaluación
(15)
Proyectos
21
38%
Arbitraje
3
33% / 33%
Caducado
4
19%
Libre
2
Desarrollador 2
Evaluación
(82)
Proyectos
86
57%
Arbitraje
25
0% / 84%
Caducado
19
22%
Libre
3
Desarrollador 3
Evaluación
(1134)
Proyectos
1436
62%
Arbitraje
21
57% / 10%
Caducado
43
3%
Libre
Solicitudes similares
I use the translator I hope to make myself understood. I'm looking for a cyclical indicator. mt5. I attach videos to understand how it works. to be inserted at any point of the graph. It is possible to change the color and thickness of the line
This EA must have the following functions together: BE: place BE when the price reach a certain gain in PIPS and you can choose the offset too, so, for example it activates after 10 pips with 1 pip of offset so you can have profit with BE too Auto SL and TP Can manage the trades made by phone when MT5 is open in the PC or VPS Trailing stop (step by step): I can decide at what number of pips the trailing stop get
This is a strategy based on crossing two trend indicators on the second timeframe (1s, for example). We work not only with the market but with the limit orders as well (robot must "read" an order book). Read the whole instruction please for more details. Speak Russian, English
Martingale EA for MT5 30 - 100 USD
Criteria: Only one trade at a time. Cannot open another trade if one is running Trade on EURUSD only, once job is completed I will be happy to schedule more for other pairs You choose entry strategy and criteria win rate must be above 50% in long term backtest of EURUSD Every trade has got TP and SL Trades to last about a day, few trades a week, at least 10 pips gain per trade, so that it can be launched on normal
I have a indicator, mql file. The signals are seen below on a EURNZD H1 chart. Very important to get accurate entries. The signal to trade is the first tic after the the indicator signal paints. I've tried to demonstrate that below. Other than that the EA will have a lot size escalation, an on-screen pip counter, a button to stop taking new trades, SL/TP, and magic number. I would like the indicator to be within the
I would like to create an EA based on the Shved Supply and Demand indicator. you can find the Shved Supply and Demand v1.7 indicator in the following link https://www.mql5.com/en/code/29395 NB: Checks the trading robot must pass before publication in the Market ( https://www.mql5.com/en/articles/2555 ) MQ5 file to be provided
Im looking for an coder to code an EA: Trade management 1. opening trades according to the indicator 2. trades settings to choose from like: open all trades according to the signal open only trade 1,2,3 or 4 % per trade ( example 50/30/20 of the lot settings, with 4 trades it would be for example 50/30/10/10) 3. SL/Trailing settings: Move SL to entry after hitting TP1/TP2 or TP3 moving SL by % keep the original SL
Hi I'm looking to have 2 of my pinescript strategies converted to MQL5 and was wondering if you could first give me a quote for the more simple strategy and then for both the simple and complex strategy together. The simple strategy is a MACD crossover type thing that uses a special EMA script that filters out some ranging price action and also fractal candles for the stop loss. The second strategy is market
I want grate robot for making profits that know when to start a good trade and close a trade and must be active all time to avoid lost of money
I have developed a very strong TradingView strategy in Pine Script but unfortunately, a third-party connector is requiired and in my opinion, I want a more direct connection. I am not brilliant at coding, but I have coded the majority of the MT5 code and I would like you to make sure that the MT5 code matches my TradingView script and executes the same way as the TradingView script that I will provide if you are

Información sobre el proyecto

Presupuesto
30+ USD
Para el ejecutor
27 USD