Hi,
i want to count trade long and short executed in a day
Can you help me?
How to count trade long e short in a day
- Svetlana MultiCharts
- Posts: 645
- Joined: 19 Oct 2017
- Has thanked: 3 times
- Been thanked: 163 times
Re: How to count trade long e short in a day
Hello, turbofib,
Please describe the specific difficulty you have with the code you use.
Please describe the specific difficulty you have with the code you use.
Re: How to count trade long e short in a day
if i code it :
But if i want to distinguish between long trade and short trade which reserved word should I use?
it give me total trade in this Date...for Loop = 0 to 10 begin
if (EntryDate(Loop) = Date0)
then Cnt = Cnt + 1 ;
end ;
But if i want to distinguish between long trade and short trade which reserved word should I use?
- Svetlana MultiCharts
- Posts: 645
- Joined: 19 Oct 2017
- Has thanked: 3 times
- Been thanked: 163 times
Re: How to count trade long e short in a day
turbofib,
Unfortunately, there are no such keywords in PowerLanguage that would allow accessing this info. You can determine if the position is long or short using the PosTradeIsLong keyword, provided that the total number of trades (PosTradeCount) and the date of trade (PosTradeEntryDateTime) are known:
https://www.multicharts.com/trading-sof ... radeIsLong
https://www.multicharts.com/trading-sof ... TradeCount
https://www.multicharts.com/trading-sof ... ryDateTime
Unfortunately, there are no such keywords in PowerLanguage that would allow accessing this info. You can determine if the position is long or short using the PosTradeIsLong keyword, provided that the total number of trades (PosTradeCount) and the date of trade (PosTradeEntryDateTime) are known:
https://www.multicharts.com/trading-sof ... radeIsLong
https://www.multicharts.com/trading-sof ... TradeCount
https://www.multicharts.com/trading-sof ... ryDateTime