I have developed an indicator -see [SP500]H1.JPG- in MT4 (base RSI + MA) which I would like to transform into an Expert Advisor.
I am not computer scientist and it would take me too much time, that's why I turn to you.
I would need these
A) VARIABLES:
- MAGIC NUMBER: number
- LOT SIZE: quantity lots
- MAX SLIPPAGE: pips
- MAX SPREAD: pips
MARTINGALE:
- USE MARTINGALE= true / false
- MAX MARTINGALE = number: how many times the martingale is applied
- MARTINGALE VALUE= quantity of lots
BREAK EVEN:
- USE BREAK EVEN= true/ false
- BREAK EVEN POINT= pips: fix from how many pips the BREAK EVEN starts and move the STOP LOS
- PIPS TO LOCK= pips: fixes the pips to apply further to the pips fixed by the BREAK EVEN POINT
TRAILING STOP:
- USE TRAILING STOP=true / false
- TRAILING STOP= pips
- WHEN TO TRAIL= pips: set how many pips the TRAILING STOP starts at
B) CONSTANT:
- REVERSE ON OPPPOSITE SIGNAL = true (closes the previously opened position and opens a new one in the opposite sign)
- TRADE DIRECTION = long & short
EXAMPLE [SP500]H1.JPG:
Arrows code 5: Label LIME / RED:
mark the entry and exit points of each trage (the indicator is MTF and Redisign The standard setting is H4 - JPG is H1)
At the same time the LABEL figure sets the STOP LOS.
The entry point of each trade is obviously not the same as the LABEL figure but has a few pips difference - SEE PIPS.JPG
SHORT: entry point 3838.15 with fixed LOS STOP at 3852.23 (as per RED LABEL)
As a further option (variable) we could add PIPS to the LOS STOP, for example in this case +500, then the LOS STOP would be 3852.23+5= 3857.23
If the trend should change in the opposite direction, in this case LONG, the open short position is automatically closed and a LONG position is opened with the same principles.
My questions are:
Can you do that? turn this indicator into EA with these variables and constants?
If yes:
-what are the costs?
-what happens with copyrights in case you want to commercialize this EA?
Thanks!