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
(16)
Projects
17
29%
Arbitration
3
67% / 33%
Overdue
0
Loaded
2
Developer 2
Rating
Projects
0
0%
Arbitration
1
0% / 100%
Overdue
0
Free
3
Developer 3
Rating
(127)
Projects
148
23%
Arbitration
5
0% / 60%
Overdue
4
3%
Working
4
Developer 4
Rating
(102)
Projects
118
31%
Arbitration
4
0% / 50%
Overdue
2
2%
Free
Similar orders
Hello, I would like to automate a strategy that is based on Fibonacci Retracement with different input, a daily read of 3 mins highest Close of the previous day, and lowest close of the day on 3 min timeframe, Then a specific line that will be named R, a video will be given to explain it, and main Trade (percentage per trade), With 1 cancelation added within the range of the R
------MAIN FUNCTIONS----------- Trade will enter buy trade after current candle goes below previous candle then within the same candle closes at or near the highest point. (PIN BAR) Trade will enter SELL trade after current candle goes below previous candle then within the same candle closes at or near the lowest point. (PIN BAR) ENTRY CANDLE TIMEFRAME: 1MIN, 5 MIN, 15MIN, 30MIN, H1, H4, DAILY PERCENTAGE DISTANCE
Hi Looking for an exisiting bot to create a Expert Advisor, that can pass prop firm Challenges (1 or 2 phases), like FTMO, MFF, TFF etc. Prop Firm EA Bot Using Gold Pairs Need source code Unlimited License NO martingale strategy Need to have nice entries and exits. NO big lots and low risk. Need complied with this restrictions: -Profit 10% -Max Drawdown (DD) 10% -Max Daily Loss 4% -All trades with SL -NO trades
H ello, I have a pinescript from trading view with several self-created indicators. Now I would like to convert these into an mt4/mt5 EA that trades automatically according to my specifications. The bot should also have an integrated news filter and not trade 2 hours before the news . I am looking for someone who can start immediately and deliver high-quality results. If you believe you are the right fit for this
I need a developer to code my strategy which is based on 2 x TFs of a single indicator and 1 TF of a confirmation Indicator. Contact me for more. MQ4 file is required after the job is done. Only developer with good reputation, please
Hello, I have a Pine Script from TradingView that includes several self-created indicators. I am looking for a professional and experienced developer to convert this script into an MT4/MT5 Expert Advisor (EA) that trades automatically according to my specifications. Key Requirements: Conversion of Pine Script to MT4/MT5 EA: Integrate multiple self-created indicators from the Pine Script. Implement specific trading
Hi i am searching for who can makes me Mt4 Robot Analysis Method = Candle + Ichimoku and also i want to attach image with Ea and image will provide from like when i attach my Ea to any type chart the chart image chnages to image which i attached to my Ea Message me for Ea parameters and for more information and only developer message me who is agree with 6days deadline and i will start job with developer on monday
Currently I have an mt4 file, I need to convert this mt4 robot to mt5 version for it, according to the available mt4 file, I can do some other ea if it meets the requirements
Unicorn model entry for boom and crash only to catch spikes and crashes... Selling crash and buying boom Please have knowledge about boom and crash before applying Also demo to confirm quick selection
Need to add code that will open and close transactions in the strategy tester. one buy and one sell trade on each new bar of the selected timeframe. with fixed stop loss and take profit of 100 and 100. on any trading instrument. The EA must pass a test from the market to load the product. no errors. Please provide the code separately, I will enter it into the bot myself. After successfully uploading the product to

Project information

Budget
30+ USD
For the developer
27 USD