TheRealBigFudge
New member
Hello - This is surely an easy fix, but I seem to be stuck. My buy and sell points are utilizing the previous days open price instead of the open price on the trade day.
Example would be the last Buy indicator is today (12/13). It indicates Buy To Open @3939.29, which is yesterday's (12/12) Open Price.
Curious as to what I am doing wrong to get the Price to the Open for current day vs previous.
def triggerEnt = close[1] < close[2] ;
def TriggerExt = high[1] > high[2] ;
AddOrder(OrderType.BUY_TO_OPEN, triggerEnt, open, arrowcolor = (Color.GREEN), name = "Buy");
AddOrder(OrderType.SELL_TO_CLOSE, TriggerExt, open, arrowcolor = (Color.RED), name = "Sell");
Thank you in advance!
Example would be the last Buy indicator is today (12/13). It indicates Buy To Open @3939.29, which is yesterday's (12/12) Open Price.
Curious as to what I am doing wrong to get the Price to the Open for current day vs previous.
def triggerEnt = close[1] < close[2] ;
def TriggerExt = high[1] > high[2] ;
AddOrder(OrderType.BUY_TO_OPEN, triggerEnt, open, arrowcolor = (Color.GREEN), name = "Buy");
AddOrder(OrderType.SELL_TO_CLOSE, TriggerExt, open, arrowcolor = (Color.RED), name = "Sell");
Thank you in advance!
Last edited by a moderator: