I am trying to write an EA based on an indicator i coded. The indicator is fairly complex(especially for a beginner coder) and i was wandering of the right way to use the indicator's logic in the EA. The problem i am having is that i have no idea of how an EA analyzes the price data to make by sell decisions. In order for this EA to generate a buy/sell signal about 50 or more of the last bars need to be analyzed. Most EAs i looked at are based on some kind of cross over logic which require no previous data to be analyzed other than calculated the averages which is handled by a function. So here are some of my question:
1. Should i create a function before the start() that would have all the logic for triggering a buy/sell and then have the function return a 1=buy 2=sell type thing?
2. Should i include the logic inside the start()function?
3. Is the same exact EA suitable for back testing and live trading?
4.Can an EA that is being traded live generate signals that have happen in the past and open trades that should have never been open live?
1. Should i create a function before the start() that would have all the logic for triggering a buy/sell and then have the function return a 1=buy 2=sell type thing?
2. Should i include the logic inside the start()function?
3. Is the same exact EA suitable for back testing and live trading?
4.Can an EA that is being traded live generate signals that have happen in the past and open trades that should have never been open live?
Stubbornly persistent