|
Attention! Read the forum rules carefully before posting a topic.
Try to find an answer in Wiki before asking a question. Submit programming questions in this forum only. Off topics are strictly forbidden.
Any topics which do not satisfy these rules will be deleted.
Indicator issue |
Ivan35
|
Post subject: Indicator issue |
Post rating: 0
|
Posted: Sun 16 Sep, 2012, 20:48
|
|
User rating: 1
Joined: Sun 22 Jul, 2012, 13:35 Posts: 40
|
Hello support,
Is possible acces to open orders from IIndicator? I need to draw PL according to specific criteria (instrument, direction, label, etc.).
It is analogy profit loss indicator in ITesterChartController.
Thank You
|
|
|
|
 |
API Support
|
Post subject: Re: Indicator issue |
Post rating: 0
|
Posted: Mon 17 Sep, 2012, 07:16
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
No, you should call indicator from the strategy and make your orders from the strategy.
|
|
|
|
 |
Ivan35
|
Post subject: Re: Indicator issue |
Post rating: 0
|
Posted: Mon 17 Sep, 2012, 07:57
|
|
User rating: 1
Joined: Sun 22 Jul, 2012, 13:35 Posts: 40
|
Thank you for answer, but i need not to manage positions, only draw PL lines according to specific criteria. For example one output will draw current P/L from open EURUSD positions, other one from open GBPUSD etc...
|
|
|
|
 |
API Support
|
Post subject: Re: Indicator issue |
Post rating: 0
|
Posted: Wed 19 Sep, 2012, 14:11
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
A strategy can also draw such lines or strategy can call an indicator by passing the P/L value as an optional input. However, as we mentioned, already before, indicators don't have access to order data.
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|