Plot all indicator, signal, and buy and sell signal for learning purpose

MQL4 Experts

Job finished

Execution time 20 hours
Feedback from employee
Very nice customter, his documents is clear and easy to code. Thanks.
Feedback from customer
very efficient and helpful

Specification

i want an EA for MT4, the strategy itself is not important, i just want to learn how to write an EA that when i drag the EA, on the chart, it will plot all indicators all buy & sell signals, cut loss and targeted profit  

We can use a very simple

extern int Profit_target=200;
extern int Stop_loss=100;
input int Magic_num = 0001;
extern double Lot_size = 10;






void OnTick()
  {
//---
   // Get the profit target price and the stop loss price
   double Long_TakeProfitLevel = Bid + Profit_target*Point; //0.0001
   double Long_StopLossLevel = Bid - Stop_loss*Point;
   double Short_TakeProfitLevel = Ask - Profit_target*Point; //0.0001
   double Short_StopLossLevel = Ask + Stop_loss*Point;   
   
   // Check if the long condition happen and place order accordingly
   if (Enter_long()&& OrdersTotal()==0 ) y
   {   
  
   Open_Enter_long(Lot_size,Long_TakeProfitLevel,Long_StopLossLevel,"First_Enter");  

   }
   else if (Exit_long() && OrdersTotal()>0)
   {
      Close_Exit_long("Close_Exit_long");
   }
   
   // Check if the short condition happen and place order accordingly
   if (Enter_short()&& OrdersTotal()==0 ) //if more the one signal, could be Enter_long1, Enter long2 or Signal1, Signal2... //OrdersTotal depend on strategy
   {   
  
   Open_Enter_short(Lot_size,Short_TakeProfitLevel,Short_StopLossLevel,"First_Enter");  

   }
   else if (Exit_short() && OrdersTotal()>0)
   {
      Close_Exit_short("Close_Exit_short");
   }   
   
  }



EMA crossing strategy for this EA (As i said, the strategy is not important at all)  to demonstrate what i want





you can see i use arrows to plot all crossing up and down (buy and sell signal), i don’t know can it be coded, if not, pls provide a suggestion that can make me clear to see buy and sell signal


And i use Red and Blue horizontal lines to demonstrate Cut loss price and targeted-profit price,  and again,   i don’t know can it be coded, if not, pls provide a suggestion 


Moreover.  want the code will write as the follow format, which using function() for easy apply to other EA (the code is incomplete and may wrong, cos i am not good at it)


void OnDeinit(const int reason)
  {
//---
   
  }
//+------------------------------------------------------------------+
//| Expert tick function                                             |
//+------------------------------------------------------------------+

//1.Basic Settng
// Define global variables
extern int Profit_target=200;
extern int Stop_loss=100;
input int Magic_num = 0001;
extern double Lot_size = 10;



//2.Basic detect Enter & Exit


void OnTick()
  {
//---
   // Get the profit target price and the stop loss price
   double Long_TakeProfitLevel = Bid + Profit_target*Point; //0.0001
   double Long_StopLossLevel = Bid - Stop_loss*Point;
   double Short_TakeProfitLevel = Ask - Profit_target*Point; //0.0001
   double Short_StopLossLevel = Ask + Stop_loss*Point;   
   
   // Check if the long condition happen and place order accordingly
   if (Enter_long()&& OrdersTotal()==0 ) 
   {   
  
   Open_Enter_long(Lot_size,Long_TakeProfitLevel,Long_StopLossLevel,"First_Enter");  

   }
   else if (Exit_long() && OrdersTotal()>0)
   {
      Close_Exit_long("Close_Exit_long");
   }
   
   // Check if the short condition happen and place order accordingly
   if (Enter_short()&& OrdersTotal()==0 ) 
   {   
  
   Open_Enter_short(Lot_size,Short_TakeProfitLevel,Short_StopLossLevel,"First_Enter");  

   }
   else if (Exit_short() && OrdersTotal()>0)
   {
      Close_Exit_short("Close_Exit_short");
   }   
   
  }

Enter long = EMA 24 cross up EMA 60

Enter short = EMA 24 cross down EMA 60

Exit long = EMA 24 cross down EMA 60 

Exit short =  EMA 24 cross up EMA 60


And since it is a learning of how to plot  all indicators and all buy & sell signals, so pls write some description for elaboration 



Files:

GIF
Plotting.GIF
54.7 Kb

Responded

1
Developer 1
Rating
(19)
Projects
22
23%
Arbitration
5
40% / 60%
Overdue
2
9%
Working
2
Developer 2
Rating
Projects
0
0%
Arbitration
1
0% / 100%
Overdue
0
Free
3
Developer 3
Rating
(288)
Projects
360
29%
Arbitration
37
27% / 65%
Overdue
10
3%
Loaded
Published: 10 codes
4
Developer 4
Rating
(108)
Projects
126
35%
Arbitration
6
0% / 67%
Overdue
2
2%
Free
Published: 25 codes
Similar orders
Title: Custom M5 Gold (XAUUSD Cent) Scalper EA with Daily Profit Target and Strict Risk Control 1. OVERVIEW & OBJECTIVE We need an Expert Advisor (EA) developed for MT4 and MT5 to trade XAU/USD Cent (XAUUSDc on HFM / HF Markets). The EA must operate fully autonomously on M5 charts, targeting micro-pips (3 to 5 cent movements) per trade. The core philosophy is "set-and-forget" with absolute risk protection to prevent
Thana ram 30 - 200 USD
Hello, I want to develop a custom MT5 Expert Advisor (EA) for XAUUSD Gold. IMPORTANT: I want a proper rule-based automated trading EA, NOT a martingale, grid or guaranteed-profit bot. 1. MARKET & TIMEFRAME - Platform: MT5 - Symbol: XAUUSD only - Main trend timeframe: M15 - Entry timeframe: M5 - Must support broker suffixes such as XAUUSDm, XAUUSD., etc. 2. TREND RULE BUY trend: - M15 price above EMA 50 - EMA 50 above
Hi, I’m looking for a **ready-made MT5 scalping EA specifically for Gold (XAUUSD)**. My main requirement is an **HTF scalping strategy**, so I’m looking for an existing robot that is already developed and can be tested before I make the purchase. I’m not looking to build one from scratch at this stage. I would like to first test the EA on a **demo account** to see how it performs under live market conditions and
Are you able to build one bot for stock and one for ninja trader and tell me the win rate on it. I need ninja trader bot that enter buy and exit according the move to do not stay long in the market in each entry . That can follow the smart money concept or other if you have a good one
custom color candle logic understand programmer need for this job... first understand logic and interested please message .... 1-candle color green and hh for buy, candle color red ll for sell so candle color and hh or ll must match to place order... below color candle entry logic see in (ea input settings) previous candle (low or high) for stop pending order with some pips high or low in input settings 2-orders
READ CAREFULLY BEFORE APPLY Hi there I am in need of a well automated and reliable ready made expert advisor scalper ea that run perfectly across trending market conditions, I mean a profitable strategy must perform optimally and yield massive trading returns, I am looking forward to validate a well working ea as per my specifications here, you must provide both screenshot and videos of the HFT scalper ea running on
Hi there I need an developer to create a ea for mt5 and mt4 but the ea should be an fast connect ea meaning by taping the ea then automatically it connect to mt5 chart same in mt4 It should place order using invisible buy and invisible sell when the bid price breakout in 1 point Automatically it place an order depends on which direction and invisible stop loss in points , please reply if you can
I am looking to purchase a license for an existing and proven MT5 Expert Advisor. I am NOT looking for someone to develop a new EA from scratch. The EA must meet ALL of the following requirements: BACKTEST REQUIREMENTS Minimum 10 years of backtest history Minimum 5,000 trades in the backtest Backtest must use realistic trading costs, spread and commissions Results should be reasonably consistent across different
EA 35+ USD
Project Title: Development of a Custom Breakout Expert Advisor (EA) with Dynamic Trailing Stop, Advanced Security Filters, and On-Screen Dashboard for MT5 Project Description: Overview: I am looking for an experienced MQL5 developer to build a fully automated Trading Robot (Expert Advisor) for MetaTrader 5 based on a pending orders breakout strategy with strict dynamic risk management and customized time/profit
READ CAREFULLY BEFORE APPLY Hi there I am in need of a well automated and reliable ready made expert advisor scalper ea that run perfectly across trending market conditions, I mean a profitable strategy must perform optimally and yield massive trading returns, I am looking forward to validate a well working ea as per my specifications here, you must provide both screenshot and videos of the HFT scalper ea running on

Project information

Budget
30+ USD