Hi.
I'd like to know if it's possible to write a study whichs plot the entry price of our position (given in the chart trading window) as text on the chart.
There are a couple of reserved words, Entry Price, i_MarketPosition_at_Broker, MarketPosition, but they are for strategies, they can only be used in signals.
Regards,
Fernando
Manual trading position - entry price
Re: Manual trading position - entry price
it should works once the feature explained at the bottom of this thread becomes functional:
viewtopic.php?f=1&t=8450
viewtopic.php?f=1&t=8450
- arnie
- Posts: 1594
- Joined: 11 Feb 2009
- Location: Portugal
- Has thanked: 481 times
- Been thanked: 514 times
Re: Manual trading position - entry price
Very interesting. Opening a position manually and then a strategy will recognize that position and activate itself as a stop loss, trailing stop, break even stop or whatever we decide to do with it.it should works once the feature explained at the bottom of this thread becomes functional:
viewtopic.php?f=1&t=8450
Looking forward to see it in action.
But, imagine that we go long manually, the strategy sends a stop loss and target to the broker, but we decide to close it manually before any of the strategy orders are hit. Will the strategy orders be cancelled automatically as soon as the position is closed?
Another question, we are talking about a strategy, a signal. My initial request was for a study/indicator. As soon an order is given, manually, I want to plot a text indicating the price of that entry on the chart, for example, at the top right.
For this, wouldn't we need a reserved word to function under a study/indicator? All reserved words that retrieve data from the broker are for signals/strategies only.
Regards,
Fernando
- Stan Bokov
- Posts: 963
- Joined: 18 Dec 2009
- Has thanked: 367 times
- Been thanked: 302 times
Re: Manual trading position - entry price
If your strategy check the market position, then you can add a condition for it to cancel some/all orders once mp = 0.But, imagine that we go long manually, the strategy sends a stop loss and target to the broker, but we decide to close it manually before any of the strategy orders are hit. Will the strategy orders be cancelled automatically as soon as the position is closed?
That would be a separate feature request.Another question, we are talking about a strategy, a signal. My initial request was for a study/indicator. As soon an order is given, manually, I want to plot a text indicating the price of that entry on the chart, for example, at the top right.
For this, wouldn't we need a reserved word to function under a study/indicator? All reserved words that retrieve data from the broker are for signals/strategies only.
Regards,
Fernando[/quote]