- Only HLine does that.
- Please edit your (original) post and use the CODE
button (Alt-S)! (For large amounts of code, attach it.)
General rules and best pratices of the Forum. - General - MQL5 programming forum
Messages Editor
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Is it possible to have OBJ_TREND showing up as a price level on the right hand scale? I don't want to use OBJ_HLINE because I want it to start at a specified point and not go right across the chart.
I am trying to do it via a drag and drop script
thank you
ObjectCreate("Line " + TimeNow + Price_on_Drop,OBJ_TREND,0,0,Price_on_Drop); //OBJ_TREND
ObjectSet("Line " + TimeNow + Price_on_Drop,OBJPROP_COLOR,Line_Color);
ObjectSet("Line " + TimeNow + Price_on_Drop,OBJPROP_WIDTH,Line_Width);
ObjectSet("Line " + TimeNow + Price_on_Drop,OBJPROP_RAY,Line_Ray);
// ObjectSet("Line " + TimeNow + Price_on_Drop,OBJPROP_RAY_RIGHT, True); //kk testing this doens't work grrrr
// ObjectSet("Line " + TimeNow + Price_on_Drop,OBJPROP_BACK, True); // kk testing this