EmaCross_v2

If you need an Indicator or Signal developed or translated from other language, please post all Indicator development REQUESTS to this section here.

Moderator: admin

EmaCross_v2

Postby myer16 » Tue Apr 20, 2021 1:44 am

Hello Apprentice
I have a EmaCross.mq4 indicator which i pasting as attachment.
Please modify the code to display the following information and name it Emacross_v2.mq4

The information will be displayed in two seperate lines, just below the Blue Buy Arrow and just above the Red Sell Arrow

1st line: SP(Signal Price): "Buy@" or "Sell@"
--------------------------
Price at which Buy/Sell signal is generated.
Displayed in Blue if the signal is Buy
Displayed in Red if the signal is Sell

2nd Line: P/L(Profit/Loss): "Profit-" or "Loss-" (value in points of symbol/instrument the indicator is placed to make it universal on both forex/stocks/cryto any instrument)
--------------------------
Displayed in Blue if Profit
Displayed in Red with a negative sign if Loss

Usage of this Indicator
-----------------------
To understand the calculation of the Profit/Loss i am describing how the indicator is used for trading.

Every Time a Buy Signal is displayed a previous Short Trade is closed at the current Buy Price and a new Long Trade is opened similary, every time Sell Signal is displayed a previous Long Trade is closed at the current Sell price and a new Short Position is opened.

Calculation of Profit/Loss:
-------------------------
At Buy Signal: Last Signal Price minus Current Signal Price
if last signal(Sell Price) > current signal(Buy Price) - Profit
if last signal(Sell Price) < current signal(Buy Price) - Loss
eg calculation:
Current Buy Signal Price = 200
if last signal(Sell Price) = 120, then 120 - 200 = -80 (Loss)
if last signal(Buy Price) = 250 then 250 - 200 = 50 (Profit)

At Sell Signal: Current Signal Price minus Last Signal Price
if last signal(Buy Price) > current signal(Sell Price) - Loss
if last signal(Buy Price) < current signal(Sell Price) - Profit
eg. calculation:
Current Signal(Sell Price) = 200
if Last Signal (Buy Price) = 120, then 200 - 120 = 80 (Profit)
if Last Signal(Buy Price) = 250, then 200 - 250 - -50 (Loss)

The P/L are calculated and displayed with all the Buy/Sell signals generated by the indicator for the entire historical data available/loaded in MT4

I have attached screenshot of a similar mt4 indicator for reference.
EmaCross_v2.png


P.S
----
Please dont add any extra features to the indicator(i.e. inputal program, telegram etc) to the indicator, only the above requested modification, i want the indicator to be very simple and uncomplicated to understand
EmaCross.mq4
(3.79 KiB) Downloaded 130 times
myer16
 
Posts: 19
Joined: Fri Apr 17, 2020 2:54 am

Re: EmaCross_v2

Postby Apprentice » Tue Apr 20, 2021 3:40 pm

Your request is added to the development list.
Development reference 380.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36476
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: EmaCross_v2

Postby myer16 » Wed Mar 16, 2022 9:38 am

Pls process my request development number 380, dated 21st April 2021
myer16
 
Posts: 19
Joined: Fri Apr 17, 2020 2:54 am


Return to Indicator and Signal Requests

Who is online

Users browsing this forum: No registered users and 15 guests