I have a head&shoulder indicator as picture below :

As picture above, green line is left shoulder, white line is head, yellow line is neck. Exit (red cross) if right shoulder 10 bars more than left shoulder.
The indicator has 5 difference exit :
1) if buy arrow appear then exit.
2) if sell arrow appear then exit.
3) if right shoulder is 10 bars more than left shoulder then exit (mentioned just now).
4) if white line is more than 225 points from green line, then exit.
5) if yellow line is more than 225 points from green line, then exit.
Picture below show sell arrow (yellow color) appear then exit :

Please add 2 new functions to this indicator as picture below description :
New function 1 : min Head 15 points.

New function 2 : Limit 30 bars between the distance from neck to head.

I have code for the new function 2 but it has bug, u can copy the code and fix the bug if u want :
if(countGreen1==true){
int countBarsGreen1 = iBarShift(NULL,0,debutGreen1);
if(countBarsGreen1>31){
Print("31 points distance go high function");
ObjectMove(labelBlue1,1,Time[0],blue1);
ObjectMove(labelPurple1,1,Time[0],highest1);
ObjectMove(labelGreen1,1,Time[0],lowest1);
string cross4 ="cross4"+DoubleToStr(Bid,5);
ObjectCreate(0,cross4,OBJ_ARROW_STOP,0,Time[0],Bid);
ObjectSetInteger(0,cross4,OBJPROP_WIDTH,5);
ObjectSetInteger(0,cross4,OBJPROP_COLOR,clrRed);
ObjectSetInteger(0,labelBlue1,OBJPROP_RAY,false);
ObjectSetInteger(0,labelPurple1,OBJPROP_RAY,false);
ObjectSetInteger(0,labelGreen1,OBJPROP_RAY,false);
labelBlue1=labelGreen1=labelPurple1="helloworld";
ChartRedraw(0);
countGreen1=false;
countPurple1=false;
countBlue1=false;
countPink1=false;
countAlert1=false;
goHighCount=false;
robert1=false;
pass1=true;
}
}
Similar orders
BUY ALERT Supertrend turns Bullish Last time xSupertrend was bearish, there is a retracement on BBstops Last time XSupertrend was bearish, Price was < or = to MA1 Instrument is in trend (STEP MA and STEP MA 2 are both Bullish) SELL ALERT Supertrend turns Bearish Last time xSupertrend was bullish, there is a retracement on BBstops Last time XSupertrend was bullish, Price was < or = to MA1 STEP MA1 and STEP MA 2 are
I want a order block indicator mt5 which will give signals alerts.. Bearish order block blue bullish red .. with highs and lows reversal........ it should give arrows or dots for entry or something... and exit level... I show what I need in the picture
I want to check if this indicator is repainting or not Whick mean the results of back testing is legit or not if anyone can help me to review it kindly to well to contact me i will be happy to work and go on long term work with anyone thanks
1.Sinyal Perdagangan : Sinyal beli: garis MACD utama memotong garis sinyal ke atas (macd_current>signal_current && macd_previous<signal_previous). Sinyal jual: garis MACD utama memotong garis sinyal ke bawah (macd_current<signal_current && macd_previous>signal_previous). Gambar di bawah menunjukkan kasus beli dan jual. 2. Posisi ditutup pada sinyal yang berlawanan: Posisi beli ditutup pada sinyal jual, dan posisi
Hi guys looking for a reversal indicator that places signals in chart have a look at image attached but it's just for reference I'll be happy to hear new ideas and options. Signals must he placed at candle close amd not repaint. Since I'm offering a high budget and bringing a strategy is involved in the order I want everything to run smoothly in these steps 1. Send screenahots of it 2. I'll give you feedback what to
🔹 COMPLETE DEVELOPMENT ASSIGNMENT Institutional Volume & Structure Indicator Platform: MT5 (preferred) OR TradingView (Pine Script v5) Type: Indicator only (NO EA, NO auto trading) Purpose: Institutional analysis for manual trading & manual backtesting 1. GENERAL REQUIREMENTS Indicator only (no orders, no strategy execution) No repainting Auto update + auto remove logic Clean, modular, performance-safe code User
can anyone help me with building a complete automated pine code strategy and indicator that work for both FXs & CFDs and have a high winning rate proved through back testing. I have a very complex current code that developed mostly using AI but lots of gaps are there although it translate exactly what I have in my mind. So, you are free to decide whether wo build a complete new code or fix my current working code ( i
Hello, I will need one indicator in Tradingview converted to a strategy in MT5. The indicator is called ...Multi Kernel Regression [ChartPrime] Indicator. If the indicator says "BUY" then the EA buys, if the indicator says "SELL" then the EA sells. I will need another one that is a strategy in Tradingview converted to a strategy in MT5. "UT Bot Strategy". Two in total. Lets talk
I have build the trade copier for ninja trader as indicator. I need someone to fix the issue i am having or create new one similar to replicanto. here are my issue.. ### 1. Opposing Positions Across Multiple Accounts A counter trade violation occurs when you hold opposite directional positions (Buy vs. Sell) in the same symbol or product across different accounts. * *Example from your report:* In Violation #8
Hello. I am finding an experienced python developer who can implement my trading strategies into robots. I like trend-following swing trading strategies and am going to automate my idea. More details can be discussed by chatting. If you have similar working experience it can be a plus. Thanks