Page 1 of 2

Moving Average Pending Order

PostPosted: Thu Aug 31, 2017 12:28 am
by Munawwir
Hello guys,

I'm new here and just replied to the introduction section. I have very basic knowledge on programming but I do understand the concept just a little. So here is my request and this is the concept.

*code* //start script

for //current price is below MA21 SMA in H1

*code* //pending order sell limit is set at MA21 SMA Price in H1

if //no entry submit yet in current candle

*code* //pending order sell limit will update on to the next candle at MA21 SMA Price in H1

else //there is an entry already

*stop script* //Stop the script

for //current price is above MA21 SMA in H1

*code* //pending order buy limit is set at MA21 SMA Price in H1

if //no entry submit yet in current candle

*code* //pending order buy limit will update on to the next candle at MA21 SMA Price in H1

else //there is an entry already

*stop script* //Stop the script

This is more of an MA pending order execute. Like when the price hits the MA, it will automatically enter according to my lot. The reason for this is when a my MA has crossed a Support or Resistance line, I would like to enter at the 'maximum' reversal price which is my MA. And that is not possible during my sleep. Im happy if someone can help me produce the code or if maybe you can make the code yourself and share it here. The idea is that it can be use by anyone, and can edit any value for the MA.

Kind Regards,
Muna

Re: Moving Average Pending Order

PostPosted: Fri Sep 01, 2017 3:30 am
by Apprentice
If I understood.
Entry order will be set at MA.
As MA is changed, the entry level will be changed.
Can you confirm it?

Re: Moving Average Pending Order

PostPosted: Sun Sep 03, 2017 6:10 am
by Munawwir
Yes that is correct. Thank you for replying Apprentice

Re: Moving Average Pending Order

PostPosted: Sun Sep 03, 2017 8:55 pm
by Munawwir
Apprentice wrote:If I understood.
Entry order will be set at MA.
As MA is changed, the entry level will be changed.
Can you confirm it?


Yes, that is correct. Sorry for the late reply. I thought I had replied already which awaits approval :cry:

Re: Moving Average Pending Order

PostPosted: Mon Sep 04, 2017 7:15 am
by Apprentice
Your request is added to the development list, Under Id Number 3883
If someone is interested to do this task, please contact me.

Re: Moving Average Pending Order

PostPosted: Tue Sep 12, 2017 3:48 am
by Apprentice

Re: Moving Average Pending Order

PostPosted: Tue Sep 12, 2017 3:55 am
by Munawwir
Thank you very much, Apprentice. May I know how do I import lua files into MetaTrader 4?

Re: Moving Average Pending Order

PostPosted: Tue Sep 12, 2017 4:09 am
by Apprentice
U can NOT
Stategy was writen for TS2/Marketscope-
Not as MT4 EA

Re: Moving Average Pending Order

PostPosted: Tue Sep 12, 2017 4:18 am
by Munawwir
Owh so that is a different platform? Sorry, I didn't notice you were making for that instead of MT4. I should've mentioned that earlier. Is there anyone here that can write EA for MT4?

Re: Moving Average Pending Order

PostPosted: Wed Sep 13, 2017 5:35 am
by Apprentice
Your request is added to the development list, Under Id Number 3893
If someone is interested to do this task, please contact me.