Help Needed. Bare Bones of an RSI Expert Advisor

 

Hi guys, Im new to MQL5 and learning as much as I can.

I wanted to ask if someone could write out the code for a very, very basic expert advisor robot. All I want it to do is when the RSI hits a certain number, I want to open a trade in the opposite direction with a take profit level and a stop level. Thats it.

The main issue I have learning MQL5 at the moment is the syntax. For example, this bit of code: ' Inp_Signal_MA_Period ' << How do I know all of the different types that can be used with #include <Expert\Signal\SignalMA.mqh> ??? Where do i get this information? I have been searching this site but couldn't find the answers. Just things like this I am not getting at the moment. 

If I can see the layout of a basic RSI one (and I have been looking at the examples in MQL5 too) it may help me further understand how the different elements tie together to make a robot.

Thank you to anyone who helps me in advance!

 

See codebase https://www.mql5.com/en/code

MQL5 Code Base
MQL5 Code Base
  • www.mql5.com
MQL5 Source Code Library for MetaTrader 5
 
Marco vd Heijden:

See codebase https://www.mql5.com/en/code

Thanks :)
Reason: