Hello
I'm writing an easylanguage code and ...
I'm outside the market and I want to check...
a) If my last trade was positive or negative (benefits).
b) If I exit my last position because of a "stop loss"
What functions do I need to use?
a) positionprofit(1)>=0 ?
b) ????
regards
checking reason exit position, and benefits ??
- TJ
- Posts: 7743
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2222 times
Re: checking reason exit position, and benefits ??
To start...Hello
I'm writing an easylanguage code and ...
I'm outside the market and I want to check...
a) If my last trade was positive or negative (benefits).
b) If I exit my last position because of a "stop loss"
What functions do I need to use?
a) positionprofit(1)>=0 ?
b) ????
regards
look up sections begin with "Strategy"
https://www.multicharts.com/trading-sof ... _Reference
Re: checking reason exit position, and benefits ??
Hi
There I can find a list of many functions but I don't know the proper way to do what I need, above all, the way to check what was the reason I exit the market last trade.
I've found the word "PosTradeEntryCategory" at your link but it doesn't appear in the reference document EL_FunctionsAndReservedWords_Ref.pdf
There I can find a list of many functions but I don't know the proper way to do what I need, above all, the way to check what was the reason I exit the market last trade.
I've found the word "PosTradeEntryCategory" at your link but it doesn't appear in the reference document EL_FunctionsAndReservedWords_Ref.pdf
- JoshM
- Posts: 2195
- Joined: 20 May 2011
- Location: The Netherlands
- Has thanked: 1544 times
- Been thanked: 1565 times
- Contact:
Re: checking reason exit position, and benefits ??
There's an article on PosTradeEntryCategory on the wiki, but if you want to know the 'reason' why the last trade was exited, I think PosTradeExitName is more suitable (if you use descriptive order names).There I can find a list of many functions but I don't know the proper way to do what I need, above all, the way to check what was the reason I exit the market last trade.
I've found the word "PosTradeEntryCategory" at your link but it doesn't appear in the reference document EL_FunctionsAndReservedWords_Ref.pdf
Otherwise you could track this in your PowerLanguage code directly.