Hey people,
I'm trying to test a simple strategy, but not getting the output I want.
I was able to get my "show me" to kind of work (Plotting lastdayofmonth is correctly, but not plotting 10th day is not working if 10th day is on weekend),
Here is what I have for the Show me:
inputs:
TradeDay ( 10) ; //If 10th day is on weekend it will not Plot? How can I make it plot next trading day then?
If DayOfMonth(date) = LastDayOfMonth(month(date)) then Plot1(Value1) ;
If DayOfMonth(date) = TradeDay then then Plot2(Value2) ;
Value1 = Close ;
Value2 = Close;
I'm testing selling on the "LastDayOfMonth" and Closing the Order on 10th Trading day of next month.
What I did to add this was just change "Plot1..." to "Sell this bar;"
I didn't get an errors when I verified it, but when i put it on the chart, nothing is displaying.
Any help would be really appreciated!
Thanks.
I'm trying to test a simple strategy, but not getting the output I want.
I was able to get my "show me" to kind of work (Plotting lastdayofmonth is correctly, but not plotting 10th day is not working if 10th day is on weekend),
Here is what I have for the Show me:
inputs:
TradeDay ( 10) ; //If 10th day is on weekend it will not Plot? How can I make it plot next trading day then?
If DayOfMonth(date) = LastDayOfMonth(month(date)) then Plot1(Value1) ;
If DayOfMonth(date) = TradeDay then then Plot2(Value2) ;
Value1 = Close ;
Value2 = Close;
I'm testing selling on the "LastDayOfMonth" and Closing the Order on 10th Trading day of next month.
What I did to add this was just change "Plot1..." to "Sell this bar;"
I didn't get an errors when I verified it, but when i put it on the chart, nothing is displaying.
Any help would be really appreciated!
Thanks.