- ago
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.
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]);    }
0
781
Solved
1 Replies

Reply

Bookmark

Sort
- ago
#1
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.
0
Best Answer

Reply

Bookmark

Sort