insufficient margin to allow trading

Ask your basic questions confidently here. Flaming is not allowed. Sympathetic help is the order of the day.
Post Reply
squissh
Posts: 4
Joined: Tue Sep 10, 2013 12:09 am

insufficient margin to allow trading

Post by squissh »

Hello everyone,
I am new to automated forex trading, but since I travel a lot, I would like to have an automation running while I am gone.

I found Steves automator for crossing EMA lines, which I like very much ... thank you very much Steve!!
I am not sure, if I have the most recent version, so I am thankful for any link.

My question is the following:
I am trading on a 3000 USD demo account.
The EA will open the first trade nicely with a 0.2 lot. Unfortunately it will give me the message "There is insufficient margin percent to allow trading" for any other position. Even though the percentage is more than 1200%

Please let me know how I can modify the script to allow the EA to open at least 4-5 positions.

Thank you very much for your help.

Jon
User avatar
fxdaytrader
Trader
Posts: 190
Joined: Sun Jun 10, 2012 7:03 am
Location: Poon-Town (germany, se-asia, se-europe) ...

Re: insufficient margin to allow trading

Post by fxdaytrader »

you have to change the way the things are calculated.
upload your script in this thread and maybe we'll see ...
squissh
Posts: 4
Joined: Tue Sep 10, 2013 12:09 am

Re: insufficient margin to allow trading

Post by squissh »

I have uploaded the EA as attachment now.
Thank you
You do not have the required permissions to view the files attached to this post.
phil_trade

Re: insufficient margin to allow trading

Post by phil_trade »

squissh wrote:I have uploaded the EA as attachment now.
Thank you
set up these 2 parameters as you need :

UseForexKiwi=true;
FkMinimumMarginPercent=1500;

cheers

Philippe
User avatar
fxdaytrader
Trader
Posts: 190
Joined: Sun Jun 10, 2012 7:03 am
Location: Poon-Town (germany, se-asia, se-europe) ...

Re: insufficient margin to allow trading

Post by fxdaytrader »

There are two external variables to specify which margincheck-method should be applied

first one:
UseScoobsMarginCheck

second one:
UseForexKiwi
if you set this to true, you can specify the minimum margin percent which must be available, and that is in your ea FkMinimumMarginPercent=1500;

if you do not need marginchecks, set
UseScoobsMarginCheck=false (is already)
and UseForexKiwi=false ....
squissh
Posts: 4
Joined: Tue Sep 10, 2013 12:09 am

Re: insufficient margin to allow trading

Post by squissh »

Great, this works nicely. Thank you very much, guys!!!
Post Reply

Return to “EA's for Dummies.”