saeed Golshenas:
Hi every body
I've wrote this code
But the result is :
Please guide me how to make it's direction downward arrow?
and somewhere else in your code you create OBJ_ARROW_UP ? which is probably what you are seeing.
look at the objects list on the chart and see if your "Close_Line" exists and what its details are....
Paul Anscombe #:
Whole of the code about creating Arrow is and somewhere else in your code you create OBJ_ARROW_UP ? which is probably what you are seeing.
look at the objects list on the chart and see if your "Close_Line" exists and what its details are....
if(Close_0 > MA_0+10*_Point) { ObjectCreate(0,"Close_Line",OBJ_ARROW_UP,0,Time_0,Close_0); ObjectSetInteger(0,"Close_Line",OBJPROP_COLOR,clrBlue); ObjectSetInteger(0,"Close_Line",OBJPROP_WIDTH,2); } else if(Close_0 < MA_0-10*_Point) { ObjectCreate(0,"Close_Line",OBJ_ARROW_DOWN,0,Time_0,Close_0); ObjectSetInteger(0,"Close_Line",OBJPROP_COLOR,clrRed); ObjectSetInteger(0,"Close_Line",OBJPROP_WIDTH,2); } else { ObjectSetInteger(0,"Close_Line",OBJPROP_COLOR,clrYellow); }the arrow always looks upward arrow !!!
saeed Golshenas #:
Whole of the code about creating Arrow is the arrow always looks upward arrow !!!
You are using the same name for every object so they will overwrite each otherWhole of the code about creating Arrow is the arrow always looks upward arrow !!!
But also this code is not making the arrow in your picture as it is the wrong colour, so you update/create these elsewhere as well?
You can use print statements to log actions taken to see what is happening
Show all the relevant code
Paul Anscombe #:
You are using the same name for every object so they will overwrite each other
You are using the same name for every object so they will overwrite each other
But also this code is not making the arrow in your picture as it is the wrong colour, so you update/create these elsewhere as well?
You can use print statements to log actions taken to see what is happening
Show all the relevant code
That's right.
"using the same name for every object", it was my mistake.
Thank you PaulYou 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 every body
I've wrote this code
But the result is :
Please guide me how to make it's direction downward arrow?