I have a short program with a mistake ( file attached). I would like to fix it.
The program is written in Lua.
I can supply the program in Afl or in ELD and I would like to convert it to Lua.
This program is an indicator which embedded in the FXCM Trading Station.
(The indicator name is ConnorsRSI)
After fixing/converting the program, I would like to create two simple EAs
1. open a buy order when it is oversold and close the position when it is overbought
2. open a sell order when it is overbought and close the position when it is oversold
The two EAs should run on any time frame.
When the indicator cross oversold level than a buy order should be opened on the open price of the next candle.
The order will be closed when the indicator cross overbought level (also on the next candle)
only one position can be opened.
The sell EA is exactly the opposite (sell when it is overbought and close when it is oversold)
Overbought and Oversold levels are parameters that can be changed.
I prefer to separate the two EAs because I don't want to run both of them on the same currency pair in the same time
The size of the orders is also configurable.
The EAs should run on FXCM Trading Station.
I want to back-test the EA and optimize it , before run it on live .