MT5 Stoploss /Take profit and order placing code written for existing EA that produces buy and sell signals

仕事が完了した

実行時間1 日
開発者からのフィードバック
The best. Good customer. Strongly recommended.
依頼者からのフィードバック
Great service, quick and efficient, great communication and could recommend anyone that needs coding work done to reach out. Thanks

指定

Hi,


I have coded up a EA that produces buy and sell signals in the EA Journal. I need someone's services that can add the final touches to make it a functioning robot.


Required:

* Trade placed at the the close price of the candle that produces the signal.

* Stop loss placed at the lowest price (for a buy) and the highest price (for a sell) between the stochastic cross that produced the signal and the previous stochastic   cross.

* Take profit is a user defined multiplier of the stop loss price (default 1.5X).

* Only one trade open on the same symbol at any time.

* Base account currency of AUD.

* User defined account capital.

* User defined percentage/dollar risk of capital per trade (maximum loss amount for a loosing trade).

* Alerts to phone and app when a buy/sell signal is received.

*Place trade and close trade using the take profit and stop loss with my broker.


Current EA code is below.


//SuperTrend Stochastic Strategy
#property copyright "DCowie"


//User input Variables
input ENUM_TIMEFRAMES Timeframe = PERIOD_CURRENT;

input int SuperTrend_ATR_Legnth = 10;
input int SuperTrend_Factor = 3;
input int Stochastic_K_Legnth = 8;
input int Stochastic_K_Smoothing = 3;
input int Stochastic_D_Legnth = 3;
input int EMA_Legnth = 200;


//EA Handles
int ATR_SuperTrend_Handle;
int Stochastic_Handle;
int EMA_Handle;
int TotalBars;

int OnInit(){

//Definition to only trade once per bar
   TotalBars = iBars(_Symbol, Timeframe);

//Indicator Handle definitions
   ATR_SuperTrend_Handle = iCustom(_Symbol, Timeframe, "ATR SuperTrend", SuperTrend_ATR_Legnth, SuperTrend_Factor);
   Stochastic_Handle = iStochastic(_Symbol, Timeframe, Stochastic_K_Legnth, Stochastic_D_Legnth, Stochastic_K_Smoothing,MODE_SMA,STO_LOWHIGH);
   EMA_Handle = iMA(_Symbol, Timeframe, EMA_Legnth, 0, MODE_EMA, PRICE_CLOSE);
  
   return(INIT_SUCCEEDED); 
}

void OnDeinit(const int reason){
   
}

void OnTick(){

//Get number of Bars
   int bars = iBars(_Symbol, Timeframe);
   if(TotalBars != bars) {
      TotalBars = bars;
      
//Data Collection Arrays      
   double ATR_SuperTrend_Array [];
   double K_Array [];
   double D_Array [];
   double EMA_Array[];
   double Candle_Close_Price_Array[];
   
//Sort the array from the current candle backwards
   ArraySetAsSeries(K_Array, true);
   ArraySetAsSeries(D_Array, true);
   ArraySetAsSeries(EMA_Array, true);
   ArraySetAsSeries(Candle_Close_Price_Array, true);   

//Fill the array with data  
   CopyBuffer(ATR_SuperTrend_Handle, 0, 0, 3, ATR_SuperTrend_Array);
   CopyBuffer(Stochastic_Handle, 0, 0, 3, K_Array);
   CopyBuffer(Stochastic_Handle, 1, 0, 3, D_Array);
   CopyBuffer(EMA_Handle, 0, 0, 3, EMA_Array);
   
//Get Close Price of Current candle
   CopyClose(_Symbol, Timeframe, 0, 3, Candle_Close_Price_Array);
   
//Calculate the candle close for the current and previous candles (SuperTrend)
   double close1 = iClose(_Symbol, Timeframe, 1);
   double close2 = iClose(_Symbol, Timeframe, 2);


//Calculate the Stochastic value for the current candle
   double K_Value0 = K_Array[0];
   double D_Value0 = D_Array[0];

//Calculate the Stochastic value for the last candle
   double K_Value1 = K_Array[1];
   double D_Value1 = D_Array[1];

   double K_Value2 = K_Array[2];
   double D_Value2 = D_Array[2];
   
//Calculate the EMA Value for the current and previous candle
   double EMA_Value0 = EMA_Array[0];
   double EMA_Value1 = EMA_Array[1];

//Calculate the candle close for the current and previous candle
   double CandleClosePrice0 = Candle_Close_Price_Array [0];
   double CandleClosePrice1 = Candle_Close_Price_Array [1];
   double CandleClosePrice2 = Candle_Close_Price_Array [2]; 

   bool Condition1 = close1 > ATR_SuperTrend_Array [1] && close2 > ATR_SuperTrend_Array [0],
        Condition2 = K_Value2 > D_Value2 && K_Value1 < D_Value1,
        Condition3 = D_Value2 > K_Value2 && D_Value1 < K_Value1,
        Condition4 = CandleClosePrice1 > EMA_Value1,
        Condition5 = close1 < ATR_SuperTrend_Array [1] && close2 < ATR_SuperTrend_Array [0],
        Condition6 = CandleClosePrice1 < EMA_Value1;

//Buy Condition 
// If stochastic crosses in either direction and the SuperTrend is GREEN and the candle close is ABOVE the EMA Buy      
   if (Condition1 && Condition4) {        
   
   if (Condition2 || Condition3){ 
    
      Print(__FUNCTION__, " >Buy Signal...");
      
} 

}

//Sell condition
//If stochastic crosses in either direction and the SuperTrend is RED and the candle close is BELOW the EMA Sell
    else if(Condition5 && Condition6) {
   
         if (Condition2 || Condition3){


      Print(__FUNCTION__, " >Sell Signal...");

}
}
}
}


Thanks for your time and I look forward to hearing from you.


Cheers,


Dale

応答済み

1
開発者 1
評価
(34)
プロジェクト
60
23%
仲裁
11
73% / 9%
期限切れ
3
5%
2
開発者 2
評価
(368)
プロジェクト
398
70%
仲裁
3
100% / 0%
期限切れ
2
1%
取り込み中
3
開発者 3
評価
(42)
プロジェクト
47
30%
仲裁
12
17% / 75%
期限切れ
6
13%
4
開発者 4
評価
(2)
プロジェクト
1
0%
仲裁
3
0% / 33%
期限切れ
0
5
開発者 5
評価
(52)
プロジェクト
97
24%
仲裁
10
20% / 20%
期限切れ
12
12%
仕事中
類似した注文
I want have the possibility to increase lotsize not alone by Lot-multiplier rather I want add a fix-lot increase for excample for 0,05 lot. I want have this for buy / sell and hedge-buy and hedge sell
Hello, I‘m interested in an indicator to predict the next candles probability (bullish or bearish). But honestly I have no idea how to do this. Would be interested in your opinion how we can create such an indicator. Please let me know if you‘ve done similar work
Profitable EA HFT 50 - 300 USD
From a long time i am searching for a profitable EA i have lost a lot , and now i have only 300$ to buy a profitable EA , i wish to say with 0 losses but some or most traders they don't want to hear this i am really tired of searching for a programmer to just create me a profitable EA with the least losses or zero losses maybe nearly 1 year i am searching i just need an HFT EA that can work very well on MT4,MT5
Hello The EA will work on particular zone choose by the user and can mark it on any TF and with some rules can open trades and mange the trade by some unique rules. the EA need to check the difference by RSI as well and with some extra rules . developer should have good attitude and good communication (englsih) with high performence and knowledge with coding EA. # MANUAL ZONE MARKING # THREE TYPES OF ENTRIES (
у нас есть стратегия, нам нужно написать mql5-код ​​для тестера стратегий МТ5,Цена договорная. Мой контакт @abbosaliyev из Telegram Программист должен знать РУССКИЙ ИЛИ УЗБЕКСКИЙ язык. Задание: разработать тестер, который использует шаблон условий на открытие и проверит весь исторический график на всех доступных таймфреймах. Остальная информация будет предоставлена ​​после согласования цены
New york session based strategy 9:30 open Price takes out buy side or sell side liquidity Usually using 15min high and lows 5m entry Price takes out that high/low and price must close strongly back into the zone Is price is above price we have a sell bias vis versa for buys Sl is at the high or low with option for “offset” for cushion Tp is usually the opposite High or low. Would like the option for set pips-points &
Utilizing the MQL5 MetaEditor Wizard, I created an Expert Advisor, having the following Signal indicators: I was able to optimize the EA and reached a backtest with the following specifications: I was able to reach a profit level of 30K, as indicated below. However, the Bot is not without faults and following the backtest, I started a forward test with real live data and the results were not so great. The EA took a
Hey greetings. Am in need of a developer that has already made profitable MT4 or MT5 EA that I can buy with the backtesting and proven result. How is the draw down ? What is the winning rate ? Kindly reply and let proceed
I will buy your EA for MT5, in case that on distance it is able to make a profit of 10% per month. - Martingale methods and grid strategies should not be used as the basis of a trading strategy. - Excellent win rate (>80%) - High risk/loss management - Option to select direction of trading (long, short or both) - News filter - Editable Trading Hours I will need to test in the strategy tester and on live market (on
Looking for an experienced developer to modify my existing TDI strategy , want to add filter for Buy and Sell Signals, Arrows are displayed on chart and what only to leave high accurate arrows Source code to be provided

プロジェクト情報

予算
30+ USD
開発者用
27 USD
締め切り
最高 5 日