Order Close EA with Rsi

Grerem
6
Grerem  

Hello im new to coding

this is how it should work,

there are 2 MA´s, one with Period 5 and the larger one with Period 50

if them are crossing each other i want to open a long or a short Position.


that were my thoughts about the entry

now the close of the positions

i want to use the Rsi for example. If we have a open long position i want it to be closed if the rsi hits the 70 level

if i have a short position, i want it to be closed if the rsi hits the 30 level.


give me some coding ideas pls