Auftrag beendet
Ausführungszeit 1 Tag
Bewertung des Kunden
very good and fast
Bewertung des Entwicklers
Thank you very much, super customer!
Spezifikation
Hello,
i have 1 issue with my stop loss, when the order is passed, there is 1 case where the stop loss does not activate.
The case is :
For short position :
- when the order is passed and the entry is below the close of the bar, the stop loss is not activated
For long position :
- when the order is passed and the entry is above the close of the bar, the stop loss is not activated
here the exit code :
input int InpNormalizeDouble = 4; input int atrlength = 48; double vAtr; vAtr = iATR(NULL,0,atrlength,0); input double factorSL = 1.00; //--- it is important to enter the market correctly, but it is more important to exit it correctly... for(cnt=0;cnt<total;cnt++) { if(!OrderSelect(cnt,SELECT_BY_POS,MODE_TRADES)) continue; if(OrderType()<=OP_SELL && // check for opened position OrderSymbol()==Symbol())// && // check for symbol { //--- long position is opened if(OrderType()==OP_BUY) { //Print(""+OrderMagicNumber()); switch(OrderMagicNumber()) { case 1: //int mtime = iBarShift(_Symbol, 0, OrderOpenTime()); //iClose(_Symbol,0,0) //iTime(_Symbol,0,0) //if((bRegHigh1 < High[0] && xbars1L < xNumberbars) || bRegHigh1 == 0) //{ // bRegHigh1 = High[0]; // xbars1L++; //} bRegHigh1 = HHsinceEntry(OrderOpenTime()); //exitpriceL1 = NormalizeDouble(bRegHigh1 - (bRegHigh1 *(vAtr / OrderOpenPrice())*1.55),InpNormalizeDouble); exitpriceL1 = bRegHigh1 - (bRegHigh1 *(vAtr / OrderOpenPrice())*factorSL); //Print("bRegHigh1: "+bRegHigh1); //Print("exitpriceL1: "+exitpriceL1); //Print("vAtr: "+vAtr); //Print("OrderOpenPrice(): "+OrderOpenPrice()); //Print("==============================================="); if(MathAbs(Close[0]-OrderOpenPrice())>MathAbs(exitpriceL1-OrderOpenPrice())) { if(OrderStopLoss()<exitpriceL1 || OrderStopLoss()==0) { //pips = profit / PipValuePerLot; //NormalizeDouble(pips,1) //--- modify order and exit //Print("OrderModifyL: "+exitpriceL1); //if(!OrderModify(OrderTicket(),OrderOpenPrice(),Bid-Point*TrailingStop,OrderTakeProfit(),0,Green)) if(!OrderModify(OrderTicket(),OrderOpenPrice(),exitpriceL1,OrderTakeProfit(),0,Green)) Print("OrderModify error",GetLastError()); return; } } break; } } else // go to short position { switch(OrderMagicNumber()) { case 1: //if((sRegLow1 > Low[0] && xbars1S < xNumberbars) || sRegLow1 == 0) //{ // sRegLow1 = Low[0]; // xbars1S++; //} //Print("sRegLow1: "+sRegLow1); //exitpriceS1 = NormalizeDouble(sRegLow1 + (sRegLow1 *(vAtr / OrderOpenPrice())*1.55),InpNormalizeDouble); sRegLow1 = LLsinceEntry(OrderOpenTime()); exitpriceS1 = sRegLow1 + (sRegLow1 *(vAtr / OrderOpenPrice())*factorSL); Print("sRegLow1: "+sRegLow1); Print("exitpriceS1: "+exitpriceS1); Print("vAtr: "+vAtr); Print("OrderOpenPrice(): "+OrderOpenPrice()); Print("==============================================="); if(MathAbs(OrderOpenPrice()-Close[0])>MathAbs(OrderOpenPrice()-exitpriceS1)) { if(OrderStopLoss()>exitpriceS1 || OrderStopLoss()==0) { //Print("OrderModifyS: "+exitpriceS1); //Print("OrderOpenPrice()-Close[0]: "+(OrderOpenPrice()-Close[0])); //Print("OrderOpenPrice()-exitpriceS1: "+(OrderOpenPrice()-exitpriceS1)); //--- modify order and exit //if(!OrderModify(OrderTicket(),OrderOpenPrice(),Ask+Point*TrailingStop,OrderTakeProfit(),0,Red)) if(!OrderModify(OrderTicket(),OrderOpenPrice(),exitpriceS1,OrderTakeProfit(),0,Red)) Print("OrderModify error",GetLastError()); return; } } break; } } } else { bRegHigh1 = 0; sRegLow1 = 0; } } } } //+------------------------------------------------------------------+
and below the variable to know bRegHigh1 and sRegLow1 :
double HHsinceEntry(datetime) { //datetime OOT = OrderOpenTime(); // Assumes OrderSelect() done already int iOOT = iBarShift(Symbol(),Period(),OrderOpenTime(), false); // Bar of the open. #define iBarBuy 0 // Include current bar. int nSince = iOOT + 1; // No. bars since open. int iHi = iHighest(Symbol(),Period(), MODE_HIGH, nSince, iBarBuy); double HH = iHigh(Symbol(), Period(), iHi); // Highest high.iHi give the number of the bar with highest price.High[] return price high of the bar return HH; } double LLsinceEntry(datetime) { //datetime OOT = OrderOpenTime(); // Assumes OrderSelect() done already int iOOT = iBarShift(Symbol(),Period(),OrderOpenTime(), false); // Bar of the open. #define iBarSell 0 // Include current bar. int nSince = iOOT + 1; // No. bars since open. int iLi = iLowest(Symbol(),Period(), MODE_LOW, nSince, iBarSell); double LL = iLow(Symbol(), Period(), iLi); // Lowest low. return LL; }
i attach a screenshot for the short position

Price is nego in case
tom
Bewerbungen
1
Bewertung
Projekte
1070
50%
Schlichtung
39
28%
/
41%
Frist nicht eingehalten
49
5%
Frei
Veröffentlicht: 1 Artikel, 8 Beispiele
2
Bewertung
Projekte
212
58%
Schlichtung
9
11%
/
89%
Frist nicht eingehalten
8
4%
Frei
3
Bewertung
Projekte
285
41%
Schlichtung
15
13%
/
47%
Frist nicht eingehalten
67
24%
Frei
4
Bewertung
Projekte
945
47%
Schlichtung
309
58%
/
27%
Frist nicht eingehalten
125
13%
Frei
Ähnliche Aufträge
I want a robot that will monitor the h4 time frame. wait for 10ema to cross below or above 50 ema. look for candles to touch the 10 ema, wait for a break of structure and a reversal to the neckline. the robot must send me notification when the reversal touches the neckline and give visual indication on the chart
Hello, I have an existing XAUUSD market-analysis system called I am looking for an experienced MQL5 developer to perform a technical review and prepare a precise architecture for rebuilding the existing SIGNAL ENGINE / ANALYSIS LOGIC in MQL5. IMPORTANT: This request is ONLY about the signal-analysis engine. I am NOT requesting an Expert Advisor (EA), automated trading system, order execution, or live trading
Hi, I'm looking for an experienced MQL5 developer to build a profitable Expert Advisor for MetaTrader 5. The goal is to get the highest possible return from a small account while keeping the account alive. ACCOUNT - Broker: IC Markets (EU, regulated), MT5, hedging account - Leverage: 1:30 - Deposit: 200 USD - Instruments: Forex and/or XAUUSD, your choice. Please check that the margin for the minimum lot size is
MT5 Multi-Symbol Risk Dashboard and Trade Management EA
500 - 800 USD
I need a professional MT5 Expert Advisor for multi-symbol trade monitoring and risk management. The EA should focus on trade management rather than generating trading signals. Requirements: Platform: MetaTrader 5 / MQL5 Monitor all open positions on the account Multi-symbol support Display a dashboard showing: Symbol Buy/Sell direction Lot size Entry price Current profit/loss Stop Loss Take Profit Configurable
Hi, I’m looking for an experienced MQL5/MT5 developer to build a complex AI-powered adaptive Expert Advisor for XAUUSD+ on Ultima Markets. I have a detailed 28-section technical specification, and the requirements are fixed. I’m looking for the complete implementation , not a simplified EA or a conventional indicator-based system. The project includes: Genuine AI/ML integration AI-based market regime classification
Hello programers, l need a real profitable EA
100 - 2500 USD
This may be a weird request but if anyone has an EA that is actually consistently profitable I want to buy a copy from you. Ideally trades a lot, I'm sure theres a coder out there who has made a profitable EA, I want to backtest if you have, I have been trying to code a few on my own with no success as I'm not yet good at coding, lets see what ya got.thanks
Simple MT5 EA – MACD Crossover with SL/TP
30 - 40 USD
I need a simple MetaTrader 5 Expert Advisor based on a MACD crossover. Requirements: Platform: MetaTrader 5 / MQL5 Buy when the MACD main line crosses above the signal line Sell when the MACD main line crosses below the signal line Use completed candles only MACD parameters configurable Fixed lot size configurable Stop Loss configurable Take Profit configurable Maximum one open position per symbol Configurable Magic
Simple MT5 EA – Bollinger Bands Entry with SL/TP
30 - 40 USD
I need a simple MT5 Expert Advisor based on Bollinger Bands. Requirements: Platform: MetaTrader 5 / MQL5 Buy when price closes below the lower Bollinger Band Sell when price closes above the upper Bollinger Band Bollinger period configurable, default 20 Deviation configurable, default 2.0 Fixed lot size configurable Stop Loss configurable Take Profit configurable Maximum one open position per symbol Use completed
Simple MT5 EA – RSI Entry with SL/TP
30 - 50 USD
Platform: MT5 / MQL5 Buy khi RSI < 30 Sell khi RSI > 70 RSI period configurable, default 14 Fixed lot configurable SL/TP configurable Max 1 position per symbol Completed candles only Configurable Magic Number Deliver .mq5 source Compile without errors/warnings No martingale/grid No profitability guarantee
Trading bot ea
30+ USD
yoo i want to make a trading bot i have my strategy in videos and also the rules to if anyone can work it out for me i will be glad welcome your bid and it urget let connect here on mgl5 And if you know you can not do the project without getting paid first please don't bid thanks
Projektdetails
Budget
30 - 200 USD
Ausführungsfristen
bis 10 Tag(e)