- ago
Need to set the stop price in a codeblack block to be based on the indicated at the entry bar. So, in Sell STOP or LIMIT, we can enter the price based on an indicator value. However, the values is based on current bar, not the Entry Bar, the bar number of the time the entry was made.

Can we have an "Entry Bar" option in the codeblock SELL STOP or LIMIT qualifier exit?
0
188
2 Replies

Reply

Bookmark

Sort
Cone8
 ( 5.95% )
- ago
#1
It may not apply in your use case, but when using Max Risk Percent sizing you can do this without any blocks. Look for this section in Preferences (F12) > Trading, set up your indicator and check (enable) Automatically issue a Stop Loss order.



If not using Max Risk Percent sizing, the closest we can get you with blocks is using one of the PriceComponent "indicators" (Low, Open, Close, AveragePriceOHLC, etc.) with the PowerPack condition "Price Compare to Entry Bar". Maybe Glitch can update that rule in the future to use any indicator.

0
Glitch8
 ( 9.97% )
- ago
#2
We can tag this as a #FratureRequest, but Blocks will never be able to offer the full flexibility of a coded Strategy.
0

Reply

Bookmark

Sort