Programming questions
Posted: 26 Jul 2013 19:44
Hello,
I have three questions when trying to program my strategy and hope you can help me:
1.
from what I understood: with classical sentimentor we can generate signals and with stop sentimentors we can handle the stop loss of opening trade.
If I would like to have a strategy to open the trade and at the same time to place the stop loss, can I do that in one program? (without using Trade Guard)
Do you have any example for that?
2.
MarketPosition() function can only be used in stop sentimentors. If in a classical sentimentor I would like to know the current position, how can I do that?
3.
The new trade is based on the previous closed trade (with the same symbol). How can I get the information of the previous trade, for example its type (buy or sell), its profit and loss, its size etc?
Thank you and best regards,
I have three questions when trying to program my strategy and hope you can help me:
1.
from what I understood: with classical sentimentor we can generate signals and with stop sentimentors we can handle the stop loss of opening trade.
If I would like to have a strategy to open the trade and at the same time to place the stop loss, can I do that in one program? (without using Trade Guard)
Do you have any example for that?
2.
MarketPosition() function can only be used in stop sentimentors. If in a classical sentimentor I would like to know the current position, how can I do that?
3.
The new trade is based on the previous closed trade (with the same symbol). How can I get the information of the previous trade, for example its type (buy or sell), its profit and loss, its size etc?
Thank you and best regards,