I am not a programmer but by spotting the errors in the indicator & study the code there & comparing it up & down, I have fixed some of the problems in the indicator and posting the new version - Stoc-new.mq4 which works completley fine for the benefit of the community.
I will be very thankful to you if you could also add following features which will help all the community members.
Since the system calcuates the number of Profit trades and loss trades, pls enable system to filter the following results.
1.From date to date in first line
Days:hours:mins in second line
--------------------------------------------
Data Date Range to be at the top of the dashboard as header
Calculate the days, hrs & mins of data present in the chart by substracting the date time of the first candle present in the chart from the date time of the date time of the current candle.
2.LW - Longs Won - The total count of Longs Won
----------------------------------------
At Long exit when it checks if the trade was profit and adds the profit points to the total profit - add a code to count the total long trades which close in profit.
3.SW - Shorts Won - The total count of Shorts Won
----------------------------------------
At Short exit when it checks if the trade was profit and adds the profit points to the total profit - add a code to count the total short trades which close in profit.
4.WS - Winning Streak(consecutive Wins) - The count of consecutive wins
------------------------------
Add another integer to which the count to consecutive profits trades(from both long exit & short exit) that occur in a row are added until a trade end in loss.
5.WSP - Winning Streak Profit
----------------------
Add the total profit in points of trades in Winning Streak(all consecutive wins)
6.LS - Loosing Streak(consecutive loss trades) - count of consecutive loss trades
-----------------------------------------
Add another integer to which the count to consecutive loss trades(from both long exit & short exit) that occur in a row are added until a trade end in profit.
7.LSL - Loosing Streak Loss
-------------------
Add the total loss in points of all trades in Loosing Streak(consecutive loosing trades)
8.BT- Best Trade
----------
When after every Long Exit & Short Exit the system checks if the trade was a profit trade -- check if the profit in points was highest profit in a single trade, if yes displays the profit in points in front of Best Trade
9.WT - Worst Trade
------------
When after every Long Exit & Short Exit the system checks if the trade was a loss trade -- check if the loss in points was biggest loss in a single trade, if yes displays that trade loss in points in front of Worst Trade.
10.MD - Maximum Drawdown
----------------
at every Long Exit/Short Exit check
if the Total loss in points of loosing streak(consecutive losses trades) is more than the worst trade -- output maximum drawdown = total loss of consecutive loosing trades
if the Total loss in points of loosing streak(consecutive losses trades) is less than the worst trade -- output maximum drawdown = loss in points in the Worst Trade.
Pls add these to the new indicator Stoc-new.mq4