2. Stoc-p-l.mq4
---------------
A few set of infromation which i need to be displayed on the screen of Indicator. I have attached screenshots of some MT4 indicators which dispalyed these informations on the screen,
Taking stoc-time.mq4 as the base version
Option to set P/L management true or false from Input Options
If set to false no information is displayed and the system runs as defined in base version.
If set to true: Display the following information on chart:
Input- Signal Info : True/False
if True : On top of Long Entry/Short Entry Signals a string in white color says the signal "Long/Short @" "signal Price". On Long Exit/Short Exit signals - string of 2 lines- "Long Exit/Short Exit @ " - "Signal Price" Next lne "Profit/Loss - "Value",
Value is Calculated from Long Entry signal to Long Exit signal and Short Entry Signal to Short Exit Signal and is displayed as a String on top of the Long Exit/Short Exit in Green color if it is a Profit and in Red color with negative Sign if it is a Loss and in White color if value is zero.
(example pic of MT4 indicator attached)
Input- Remaining Time of Candle: true/false
if true display Remaing Time of completion of currebt candle along the candle(pic attached)
Input- Show Dashboard : "true/false"
if true Displays a Box in Upper Left Side of Chart having the following information in 7 Rows- having 2 in a Row(example pics of some MT4 indicators attached)
1. Last Traded Price : Last Traded Price of the instrument recieved from server which changes with every tick.
2. Signal Trend: Long/Short/No Trade
Long if last signal was Long Entry(shown in Green)
Short if last signal was Short Entry(shown in Red)
No Trade if last signal was Long Exit/Short Exit(shown in White)
3. Signal Price: Price of Signal at Long/Short Entry
Shown in Green if last signal was Long Entry
Shown in Red if last signal was Short Entry
4. Signal Time : hh:mm:ss
Calculated from the number of bars since Long/Short Entry Signal till the current candle and adding the elapsed time of current candle calculated by substracting remaining time of candle from the Timeframe of candle.
5. Current P/L : Value(Current Profit/Loss in points)
Displayed if Last Signal is Long Entry/Short Entry
and is calculated from the Long/Short Entry till the current price(Last Traded Price) of chart(shown in Green if Profit, Red with negative sign if loss and white when zero)
Below informations are calculated for all the previous signals in the Chart from the data available in backfill
(Long Entry Signal & its corresponging Long Exit Signal combined are counted as 1 Trade, similarly Short Entry Signal & its corresponding Short Exit Signal combined are considered as 1 Trade)
6. Total Trades : Total Number of Trades
7. Profit Trades : Total Number of Profit Trades
8. Loss Trades : Total Number of Loss Trades
9. Gross Profit : Gross Total of all Profit Trades(in Points)
10. Gross Loss: Gross Total of all Loss Trades(in Points)
11. Net Profit/Loss : Net Value of Gross Profit - Gross Loss
shown in Green if Value is Profit
shown in Red with negative sign if Value is Loss
shown in White if value is Zero
12. Profit Factor : Gross Profit divided by Gross Loss
13. Expectancy : Net Profit/Loss of all Trades divided by Total Number of Trades.
14. Accuracy : Profit Trades divided by Total Trades multiplied by 100