Drawing Two Horizontal Lines at a given time.

MQL5 Experts

Job finished

Execution time 21 hours
Feedback from employee
An Exelent customer. Good and quick contact. Definitely reccomend.
Feedback from customer
Really quick service. Understood my requirements first time. I would really recommend the developer.

Specification

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);



Responded

1
Developer 1
Rating
(15)
Projects
21
38%
Arbitration
3
33% / 33%
Overdue
4
19%
Free
2
Developer 2
Rating
(82)
Projects
86
57%
Arbitration
25
0% / 84%
Overdue
19
22%
Free
3
Developer 3
Rating
(1156)
Projects
1462
63%
Arbitration
21
57% / 10%
Overdue
43
3%
Free
Similar orders
EA the profit 30+ USD
I need a robot that trade on command and stop-loss and take profit when need to , able to trade on all plate form follow profitable strategies or signal , want a winning streak with fast profits making
Hi I'm looking for this EA or Similar EA with optimizated set file. This bot is an automated trading robot, operating 24/7, and capable of trading all currency pairs. Compatible with all brokers. Features: Analysis of price action charts, trends, and support and resistance levels on any timeframe. The bot integrates stop-loss (SL), stop-loss (TP), and trailing stop-loss (SL) orders. Works on MT5 getshared . c o m
I wish to create 2 different Tradingview strategies to MT5 ea-s! Anyone? One is based on Heiken Ashi...the other based on different combination of my strategy. It is for 1 minute charts
نازدك 30+ USD
Specify your Requirements Specification here point by point. Try to describe your requirements briefly and clearly, so that your potential developer is able to correctly assess its complexity and cost, as well as the required execution time. A bad or too generic description will result in your order being ignored, or you will spend a lot of time negotiating the details with each applicant. Remember: It is better to
**IMPORTANT: PLEASE DISREGARD THE PREVIOUS SPECIFICATION TITLED "FULL TRADING PLATFORM – APPLICATION FLOW REQUIREMENTS."** I no longer need the complete trading platform outlined in my previous **"FULL TRADING PLATFORM – APPLICATION FLOW REQUIREMENTS"** specification. Originally, I considered building a complete trading platform with educational materials, training systems, user accounts, subscription features
I have indicators on my Trading view which will create zones automatically on H4 Candle confirmation. I am getting an alert also that specific zone is created. I want them to shift in automated trading like once zone is created, limits should be place automatically on basis of that zone with given lot size, number of layers and with TP and SL. I have checked on AI to convert this in auto but they need zone in numbers
I am looking for an experienced MQL5 developer to recreate my existing MT5 Expert Advisor (DSTR Novaa). I have the original compiled EX5 file, Vantage MT5 live trading history and original Strategy Tester report. Required Trading Logic: EMA Period: 3. BUY when price crosses below EMA 3. SELL when price crosses above EMA 3. Starting Lot: 0.01 (configurable). Martingale Multiplier: 2.0. Maximum Martingale Cycle: 9
I need an ready-made MT5 profitable EA for Gold. 5/7% daily I need. Before applying please make sure you have one with proven ROI, Drawdown and Live performace result. I will Pay $500 for it but I need as I want. Must needs to supply Source code if I like it. Before I purchase I will test 7 days on my live account. If It's okay then apply othersie please pass this project. Hope you will respect the time for both of
I need a EA to test many EAS all in one to see the results For back testing I've got the EA I want to see the combined EAS what is the results
Hello, I need a high-quality, reliable, and well-coded Expert Advisor (EA) for MetaTrader 5. The code must be clean, without errors, and optimized for safe trading. The robot needs to trade based on basic technical indicators. Every trade must have a strict Stop Loss and Take Profit for risk management. Please apply only if you are an experienced MT5 developer with a high rating and clean coding history. Best

Project information

Budget
30+ USD