stevehopwoodforex.com
https://www.stevehopwoodforex.com/phpBB3/
Print view

insufficient margin to allow trading
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=3150
Page 1 of 1
Author:  squissh [ Thu Sep 12, 2013 7:33 am ]
Post subject:  insufficient margin to allow trading

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
Author:  fxdaytrader [ Thu Sep 12, 2013 8:26 am ]
Post subject:  Re: insufficient margin to allow trading

you have to change the way the things are calculated.
upload your script in this thread and maybe we'll see ...
Author:  squissh [ Thu Sep 12, 2013 6:51 pm ]
Post subject:  Re: insufficient margin to allow trading

I have uploaded the EA as attachment now.
Thank you
Author:  phil_trade [ Thu Sep 12, 2013 6:56 pm ]
Post subject:  Re: insufficient margin to allow trading

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
Author:  fxdaytrader [ Thu Sep 12, 2013 6:58 pm ]
Post subject:  Re: insufficient margin to allow trading

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 ....
Author:  squissh [ Mon Sep 16, 2013 11:10 am ]
Post subject:  Re: insufficient margin to allow trading

Great, this works nicely. Thank you very much, guys!!!
All times are UTC Page 1 of 1