Coin-Flip EA v2.0

Post Reply
xmess7
Trader
Posts: 32
Joined: Mon Oct 15, 2012 6:51 pm

Coin-Flip EA v2.0

Post by xmess7 »

OOPS!! My fault. Too much of in a hurry. LOL. If you double click on the error the editor will take u to the line where the error happened.

This happens to be the "NEW" simplified message I place in there. I did not add the '+' symbol before the functions NormalizedDouble(). LOL sorry about that. All fixed try it again...



acs » Sun Aug 10, 2014 2:54 pm wrote:
Hi Xmess7
my initial problem was v25 would not take any trades until I found
switching DynamicLots to false let it take trades and so I can't run with it set to true
and now the updated v25 with additional error reporting has errors when compiling :o
Alpari Empty4 build 670
You do not have the required permissions to view the files attached to this post.
enjoyforex
Trader
Posts: 13
Joined: Wed Aug 06, 2014 1:12 am

Coin-Flip EA v2.0

Post by enjoyforex »

xmess7 » Mon Aug 11, 2014 1:39 am wrote:OOPS!! My fault. Too much of in a hurry. LOL. If you double click on the error the editor will take u to the line where the error happened.

This happens to be the "NEW" simplified message I place in there. I did not add the '+' symbol before the functions NormalizedDouble(). LOL sorry about that. All fixed try it again...



acs » Sun Aug 10, 2014 2:54 pm wrote:
Hi Xmess7
my initial problem was v25 would not take any trades until I found
switching DynamicLots to false let it take trades and so I can't run with it set to true
and now the updated v25 with additional error reporting has errors when compiling :o
Alpari Empty4 build 670
hi j, still got same error 130 & stop in the middle of test, when DynamicLots is True or false

EF
xmess7
Trader
Posts: 32
Joined: Mon Oct 15, 2012 6:51 pm

Coin-Flip EA v2.0

Post by xmess7 »

Buddy show me the Journal. Your journal should show the SL and TP that was used and then we can see exactly what the problem is. So var I have not had error 130 issues. I am using Talinex broker with Market order to create the EA with.

Also what are the input us are using? I mean other than changing DynamicLots (which should have nothing to do with the SL and TP).

Let me know...

enjoyforex » Sun Aug 10, 2014 6:10 pm wrote:
xmess7 » Mon Aug 11, 2014 1:39 am wrote:OOPS!! My fault. Too much of in a hurry. LOL. If you double click on the error the editor will take u to the line where the error happened.

This happens to be the "NEW" simplified message I place in there. I did not add the '+' symbol before the functions NormalizedDouble(). LOL sorry about that. All fixed try it again...



acs » Sun Aug 10, 2014 2:54 pm wrote:
Hi Xmess7
my initial problem was v25 would not take any trades until I found
switching DynamicLots to false let it take trades and so I can't run with it set to true
and now the updated v25 with additional error reporting has errors when compiling :o
Alpari Empty4 build 670
hi j, still got same error 130 & stop in the middle of test, when DynamicLots is True or false

EF
enjoyforex
Trader
Posts: 13
Joined: Wed Aug 06, 2014 1:12 am

Coin-Flip EA v2.0

Post by enjoyforex »

hi j, this is my journal Log, Result & Setting
You do not have the required permissions to view the files attached to this post.
xmess7
Trader
Posts: 32
Joined: Mon Oct 15, 2012 6:51 pm

Coin-Flip EA v2.0

Post by xmess7 »

@ enjoyforex. Ok.. NOW I can see the problem.. lol.

Look at your journal, at the third line right after the ModifyOrder(): We see these values
HardSL=21.6 (the stop in pips)
HardTP=39.2 (the take profit in pips)
StopPrice=1.33492 (the stop in terms of EURUSD price)
TakePrice=1.33188 (the take profit in terms of EURUSD price)

Ok the Buy order was opened at 1.33426 (see 5th line of Journal) and ModifyOrder tried to set the StopPrice level at 1.33492...WRONG!! The StopPrice Level needs to be less than 1.34426, right? That's where the error is happening.

Let me look at what is generating the StopPrice number and make sure that it is generated correctly.

To give u an example. The StopPrice should actually be 21.6 pips below the open buy price of 1.33426 or it should be at 1.3321 (open - HardSL). Of course it's not.

At the least the EA will STOP when there are errors and close open order etc etc. KEWL

Ok, as a test set Use_ATR to false and give HardSL and HardTP whatever values u feel comfortable with.
You can try like the original..
Hard_SL=45.0 (original thread stoploss)
Hard_TP=90.0 (2:1)

Run it and just send me the journal if there is an error. If there is no error then that confirms that the problem is with the ATR calculation of the stop price level.

Just Hang on. 2.6 is coming UP.... Thnx sir,
J
enjoyforex » Sun Aug 10, 2014 6:48 pm wrote:hi j, this is my journal Log, Result & Setting
enjoyforex
Trader
Posts: 13
Joined: Wed Aug 06, 2014 1:12 am

Coin-Flip EA v2.0

Post by enjoyforex »

xmess7 » Mon Aug 11, 2014 3:58 am wrote:@ enjoyforex. Ok.. NOW I can see the problem.. lol.

Look at your journal, at the third line right after the ModifyOrder(): We see these values
HardSL=21.6 (the stop in pips)
HardTP=39.2 (the take profit in pips)
StopPrice=1.33492 (the stop in terms of EURUSD price)
TakePrice=1.33188 (the take profit in terms of EURUSD price)

Ok the Buy order was opened at 1.33426 (see 5th line of Journal) and ModifyOrder tried to set the StopPrice level at 1.33492...WRONG!! The StopPrice Level needs to be less than 1.34426, right? That's where the error is happening.

Let me look at what is generating the StopPrice number and make sure that it is generated correctly.

To give u an example. The StopPrice should actually be 21.6 pips below the open buy price of 1.33426 or it should be at 1.3321 (open - HardSL). Of course it's not.

At the least the EA will STOP when there are errors and close open order etc etc. KEWL

Ok, as a test set Use_ATR to false and give HardSL and HardTP whatever values u feel comfortable with.
You can try like the original..
Hard_SL=45.0 (original thread stoploss)
Hard_TP=90.0 (2:1)

Run it and just send me the journal if there is an error. If there is no error then that confirms that the problem is with the ATR calculation of the stop price level.

Just Hang on. 2.6 is coming UP.... Thnx sir,
J
enjoyforex » Sun Aug 10, 2014 6:48 pm wrote:hi j, this is my journal Log, Result & Setting

The Pleasure is all mine, Sir J :good:

Yeayy :cheer: More Revision, the EA getting better and better :mrgreen:
acs
Trader
Posts: 49
Joined: Thu Aug 07, 2014 9:26 pm

Coin-Flip EA v2.0

Post by acs »

Good morning all :smile:

well done, more errors being resolved, just in time for new trading week :cheer:

acs
xmess7
Trader
Posts: 32
Joined: Mon Oct 15, 2012 6:51 pm

Coin-Flip EA v2.6

Post by xmess7 »

Version 2.6...
EURUSDecnH1.png
-Got rid of the warning messages when compiling the sucker.
-Made the Hi and Low horizontal lines more representative, of where they start.

I have never like the horizontal lines when they extend forever... this way at the least you can SEE that the Hlines are used to determine yesterdays Hi's and Low's more clearly... check it out..

I will tackle the Error 130 prob during this coming week. I am tired and will call it a day.

So before I got to sleep I will activate 2.6 and using the following inputs:
HardSL= 90 pips
HardTP=45 pips
DynamicLots=True
EquityPercent = 0.4
TradeCandle=2

Take care everyone. I'll be around. If any of you get other errors or even the 130 error just post an image of the journal and we'll take care of it. So far I have an idea of what may be the problem, nothing concrete, but if that is the case I already have a solution LOL.

Anyhow.. enough thinking,,, no it's time for dreaming 8-)
You do not have the required permissions to view the files attached to this post.
enjoyforex
Trader
Posts: 13
Joined: Wed Aug 06, 2014 1:12 am

Coin-Flip EA v2.0

Post by enjoyforex »

hi j...thanks for all your effort...i think the problem are ATR indi & DynamicLot

Sleep tight dude ;)

EF :)
acs
Trader
Posts: 49
Joined: Thu Aug 07, 2014 9:26 pm

Coin-Flip EA v2.0

Post by acs »

here is my log file from tester having run EA as downloaded (no changes to EA), it shows the reason why
it will not take any trades unless I set DynamicLots to false.

I hope this helps you solve the problem

09:29:10 Expert CoinFlip EA V26R2: loaded successfully
09:29:10 TestGenerator: spread set to 2
09:29:10 CoinFlip EA V26 inputs: BrokerGMTOffset=0; TradeCandle=2; EquityPercent=0.35; Use_ATR=1; HardTP=0; HardSL=30; DynamicLots=1; FixedLots=0.1; MagicNumber=777;
09:29:21 2014.07.21 11:00 Tester: not enough money for sell 27.46 EURUSD at 1.35235 sl: 0.00000 tp: 0.00000 [2014.07.21 11:00]
09:29:21 2014.07.21 11:00 Tester: PrevBalance: 10000.00, PrevPL: 0.00, PrevEquity 10000.00, PrevMargin: 0.00, NewMargin: 21893, FreeMargin: -11893.45
09:29:21 2014.07.21 11:00 CoinFlip EA V26R2 EURUSD,H1: OrderSend error 134
09:30:03 2014.08.01 16:18 Tester: stop button pressed
09:30:03 EURUSD,H1: 315210 tick events (1313 bars, 434861 bar states) processed within 52260 ms (total time 52650 ms)

this is first attempt to make a trade with 10k equity
Post Reply

Return to “Automated trading systems”