Dear Vadim,
Thank you very much for your reply and suggestion
Sorry for I am only the beginner of programming, I cannot understand your strategy clearly, please help me to create my strategy from your strategy provided.
Actually, I need a simple strategy as follow:
Set Candle period and Instrument as global variable
Set the periods of Fast%K and Fast%D as global variable
Set Profitpip as global variable
Set Lostpip as global variable
OnTick
If Fast%K line moving downwards and cross Fast%D line more than 1%
If there is long position,
Then close the postion
Else open a short position
EndIf
EndIf
If Fast%K line moving upwards and cross Fast%D line more than 1%
If there is short position,
Then close the position
Else open a long position
EndIf
EndIf
If there is position
If profit >= Profitpip or lose >= Lostpip or 5 minutes to the end of the trading day
Then close the position
EndIf
EndIf
I urgently need this strategy for testing to live trading so soon as possible.
please help !!
Thanks and best regards
Davis