My simple system

 

You probably heard this one before, but I hope someone would be kind to help me develop my simple trading system.

I need a script (not an EA) that will place x buy and sell orders (buy above current quote and vice versa).

The amount of pips between each order should also be editable.

The script has to be able to handle micro lots.

The other script should be a close all open and pending orders.

I'm not sure this system will work, but I think it's worth a try.

TIA

 

Update

I found the "close all open and pending orders" script somewhere else on this site, which means I'm only looking for the first one.

I may have a few talents, but programming isn't one of them - please HELP

 

Looking for a programmer

According to some people on this board, asking for help isn't welcome.

Therefor I'm trying a different approach.

I will pay $25 to the person who can help me program the two scripts.

The close all open and pending orders script had an error, so I will need both of them.

You will have to be able to accept Paypal.

I know the $25 won't get you a Lamborghini but that's all I have to offer.

Please let me know.

 

i will do it for u for free. just give me some time.

 

Thank you

Thanks.

Your help is much appreciated.

I don't know if my system is worth anything, but once I get started I'll let you know.

Once again - thank you

 

here u go. Hope this is what u want

Files:
 

Just a few changes and it should be fine.

That's pretty fast. Thanks.

The close all works just fine, but the script that places the pending orders may need to be changed a bit.

I'm sorry if you misunderstood the way it's supposed to work. English isn't my native language but I will try to explain more detailed.

Let's say the current quote is 1.2500. I would like a variable (is that what you call it??) where I can specify the number of orders. If I say it should be 50, the script should place 50 buy orders above current quote and 50 sell orders below current quote. Please note - no sell orders above and vice versa.

The next thing is the number of pips between each order. For instance, if that number is two, the buy orders should be something like:

buy 1.2507, 1.2509, 1.2511 and so on. The same goes for the sell orders.

There should not be any stop loss or limit orders.

Just one more tiny thing.

I wasn't able to change the lot size to mini/micro lots.

I think that's about it.

Thank you for all your hard work and help.

Hopefully one day I will be able contribute with something to this forum.

 

here is the updated version

change the parameters to suit your needs before compile.

extern string s1 = "Lot size";

extern double Lots = 0.1;

extern string s2 = "Pips above/below current price";

extern int Trap = 15;

extern string s3 = "Pips between every panding order";

extern int pipsApart = 2;

extern string s4 = "How many trade to open";

extern int NumTrades = 50;

 

It's alive!!!

Looks like it's working.

You're da man. Thank you.

I'll update this thread with trading results. Perhaps not on a daily basis but hopefully twice per week. I have a full time job which prevents me from taking all the entries I would like, but at least I'm not trading blindfolded.

 

Quick Question

Thanks for sharing the useful scripts with everyone. I have a question though and would appreciate if someone knew what this is

When I execute the scripts, they have this message that says Alert: Order failed to close, error 0, sometimes error 138

Anyone know what causes this and how to resolve it? thanks

 
doragio:
Thanks for sharing the useful scripts with everyone. I have a question though and would appreciate if someone knew what this is

When I execute the scripts, they have this message that says Alert: Order failed to close, error 0, sometimes error 138

Anyone know what causes this and how to resolve it? thanks

Are u sure, u are getting alert when u run my script from here?

I see that I am using the error description and not the error code , and I am using print command and not alert command. So, maybe u get it from other script.

to findout the error code u can look at the help in the MetaEditor .

Reason: