Is it possible to close a order at 16:30, for example? PS.: (intraday time) using de daily chart
I didn't find any example of that in Wealth-lab 7.
I had tried to use the piece of code below but didn't work.
I didn't find any example of that in Wealth-lab 7.
I had tried to use the piece of code below but didn't work.
CODE:
public override void Execute(BarHistory bars, int idx) { if(bars.DateTimes[idx].GetTime() == 1600) { PlaceTrade(bars, TransactionType.Sell, OrderType.Market); } PlaceTrade(bars, TransactionType.Buy, OrderType.Limit, source[idx +1]); //PlaceTrade(bars, TransactionType.Sell, OrderType.MarketClose); PlaceTrade(bars, TransactionType.Sell, OrderType.Stop, stop[idx +1]); }
Rename
It's not possible to do it this way on Daily charts. What you can do is place MarketClose order:
https://www.wealth-lab.com/Discussion/How-do-I-enter-at-the-close-of-the-day-5504
Note that its time of execution is configured in Preferences > Data/Trading. Strike F1 while there to learn more.
https://www.wealth-lab.com/Discussion/How-do-I-enter-at-the-close-of-the-day-5504
Note that its time of execution is configured in Preferences > Data/Trading. Strike F1 while there to learn more.
Your Response
Post
Edit Post
Login is required