Job finished
Specification
Introduction:
I would like to get an expert advisor for MT5 to trade the s&p500 futures using a KAMA and pivot points indicator, only the pivot points are considered,
not resistance or support levels.
Strategy:
The expert advisor should use the kAMA to trigger long or short positions, depending on the side it is from the current pivot point PP=(H+L+C)/3.
If the KAMA (SHIFT 1) is above the current pivot point it should trigger a buy trade. If the KAMA (SHIFT 1) is below the current pivot point it should close
the previous long position (if there is any) and inmediately open a short position. There must be always a long or short position opened.
When new pivot points are created, at the end of the day, week or month, the trade shoud be kept open until the KAMA (SHIFT 1) is positioned
at the opposite side of the new pivot point.
The expert advisor should ask for the following information:
The time frame of the pivot points indicator (1 month, 1 week, 1 day)
The KAMA settings
The time frame of the graph
The maximum exposure of the account in % (0'1, 1, 2, 10, 50...) that should be calculated at the beginning of every new trade. The exposure should be
calculated using MAINTENANCE MARGINS.
Additional requirements:
The instruments to trade would be futures of the s&p500, micro or mini through AMP futures platform
The expert advisor should plot in the graph both the KAMA and the last 10 pivot points (without R1, R2, S1...)
The expert advisor should have a magic number in case I want to be using it in different time frames simultaneously.
I would like to also have the source code.