Objects: if price of current object > previous object
-
@fxdreema. help with this: if fast moving average crosses above slow moving average draw arrow. if price of current arrow is above price of previous arrow alert "upTrend". Please show me how to do this
-
You need at least two variables. One will control the previous arrow and the other one the most recently created.. But what do you mean by an arrow being 'above' Arrows are drawn on specific places of the current candle (close, open, high, low). That means you can have two arrow pointing out different candle places but havein the same 'value'.
-
Thanks. Please show with sample block examples . I'm new here.
-
Ok, but then I need you to tell me what part of each arrowed bar is the relevant one for your strategy.
-
Whenever a fast MA crosses above a slow output is red arrow. Everytime fast MA crosses above obviously an arrow is created. But then I want to be aware when a successive red arrow is above the previous.

-
Are those red arrows on your screenshot positioned on a bar's close each maybe? Is that the position to be considered higher o lower than the previous one?
-
They are placed by indicator so I don't know if it uses bar closes or what. As you can see the market was rising(one arrow after another). So if the 2nd arrow is higher than the 1st,if 3rd arrow is higher than 2nd etc,it must alert than the market is rising.
-
Ok. Can you please zoom in as much as possible to see where are they positioned exactly on each bar?