You should have got a compiler error here:
ObjectCreate("Freccia"+T,OBJ_ARROW,0,Time[1],Low[1] Dir 30*Point);
I would just use:
ObjectCreate("Freccia"+T,OBJ_ARROW,0,Time[1],Low[1]);
Everything else I would set using ObjectSet("Freccia"+T,..)
I would
like to set an arrow distance but at the same time I can decide how to
enter the input value if I use the + or - operator but I did not
understand what you want to tell me. I'm sorry
void MyFunction(int Freccia, string Dir = "-"){ //.......My code int iDir = -1; if(Dir=="+") iDir = 1; ObjectCreate("Freccia"+T,OBJ_ARROW,0,Time[1],Low[1]+iDir*30*Point); ObjectSet ("Freccia"+T,OBJPROP_COLOR,White); ObjectSet ("Freccia"+T,OBJPROP_ARROWCODE,Freccia); }
Brilliant solution, thank you very much !!!
fly7680: Brilliant solution, thank you very much !!!
|
|
Thank you whroeder1, although I'm not very good, I'm learning a lot with you!
Thanks so much
Thanks so much

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
Hi, I wrote a function with input parameters but I could not insert an operator as a string: