i set your EA..but no gmt offset....so the box is miss
A Simple London Breakout V.2 1,487 replies
Another Simple London Breakout System (with a twist) 46 replies
Simple london breakout v.9.2 error 1 reply
The algo is to keep track of ticket number of Op_Buy order using p_LongOpenTicketNo and LongOpenTicketNo
or of Op_Sell order using
p_ShortOpenTicketNo and ShortOpenTicketNo
where p_ keeps track of open order at previous tick.
If p_LongOpenTicketNo > LongOpenTicketNo then the open OP_Buy order just closed ( similar for OP_Sell) last tick or this tick depending on when the "Aggregate" function is called.
Function GetProfitLossThisOrder is called to determine if the last order closed was profitable.
If Profitable, the Mart_Idx=0 (that is lots=Lot) else Mart_Idx++ and lots=Lot*MartFactor[Mart_Idx] prior to calling the OpenPendingOrder Function.
Array MartFactor holds the multipliers to be used in succesion.
MaxLevel is user definable, that is how many levels can the martingale advance to. Maximum is the number of factors in the MartFactor array and is checked in Init();
ReStartMartSeq is user definable , that is if MaxLevel is exceeded, should the EA revert index 0 of MartFactor or keep the last multiplier till a profitable order is achieved.
lotsToTrade determination is done prior to SendPendingOrder in if(IsTradeAllowed()) in the Start routine.
OCO and UseMartingale should be true. This check is performed in Init().
This just one way of implementing Martingale in this Ea. There maybe other more effecient ways to achieve the same result.
I've not had a chance to demo it since its Friday and, if I'm not mistaken, this EA will not backtest. If it does, we should have an answer by Sunday Open.
Hope this helps.
Pat
Dislikedhmmm.... trying to open 0.00 lots... !
It has to do with the "Risk" input (2%), and your current Account Free Margin.
I have put a check for the fixed Lot input, but not for the calculated Lot based on Risk and SL at trade open.
Can you try this change in the EA v4 code:
add the following code (in bold) at the beginning of the DisplayUserFeedback() function:
[code]
//+------------------------------------------------------------------+
void DisplayUserFeedback()
//+------------------------------------------------------------------+
{
[b]...Ignored
DislikedSq,
Attached is the 4.0 EA with Martingale.
I've named it "London Breakout EA-V4.0_Pat With Mart".
Mer & Sq can decide to make it official with a Version change or extension.
PatIgnored
DislikedSq,
Attached is the 4.0 EA with Martingale.
I've named it "London Breakout EA-V4.0_Pat With Mart".
Mer & Sq can decide to make it official with a Version change or extension.
...
Hope this helps.
PatIgnored
//+------------------------------------------------------------------+ void GetProfitLossThisOrder(int ticketno) //+------------------------------------------------------------------+ { bool LastOrderProfitable=false; OrderSelect(ticketno,SELECT_BY_TICKET); if (TimeDayOfWeek(OrderCloseTime()) == TimeDayOfWeek(Time[0]) ) { if(OrderProfit()>0) LastOrderProfitable=true; } GetMart_Idx(LastOrderProfitable); }//void GetProfitLossThisOrder(int ticketno)
if(p_LongOpenTicketNo >LongOpenTicketNo ) GetProfitLossThisOrder( p_LongOpenTicketNo); } // Long Open Order Just Closed Last tick (or this tick???)
Dislikedsqualou,
did you see my issue posted about the ea opening the pending orders for the previous day even if past the trading session end time?
Can u look into that, or does it not happen to you?Ignored
DislikedPat and Squalou
Beat me if I am too stupid to run this piece of art on my server, but, unfortunately, I am getting very much the same error message as with the previous V4:
LB EA: USDCHF Some Indicator SETTINGS are missing;
Please verify objPrefix in the Indicator and the EA;
(objPrefix is currently set to LB- in the EA)
What am I missing here?
Thanks and keep up the great work!
DanielIgnored
Dislikedsqualou,
did you see my issue posted about the ea opening the pending orders for the previous day even if past the trading session end time?
Can u look into that, or does it not happen to you?Ignored
DislikedAwesome, glad u were able to recreate it so you can fix. Looking forward to playing with it next week! have a great weekendIgnored
DislikedSq,
We are interested in closing of an Op_Buy or Op_Sell trade.
If an Op_BuyStop changes to an Op_Buy last tick or this tick, LOTN(Long Open....) gets the value of its ticket number otherwise is equal to 0. p_LOTN was initialized as...Ignored
DislikedI hope everyone had a good weekend and hopefully we will rebound from the train wreck regarding last weeks trading. I did want to update my Usd/Jpy trade from Friday as it was the only pair to have a valid box. I would have done it on Friday but had to rush to catch a flight to Chicago for the weekend for my birthday.
Usd/Jpy
Trade 1= -75 pips
The next valid trade will start with a multiplier of 2>
...Ignored
Dislikedbtw i tried USDCHF : 04:00-05:00 GMT box size 35 ..
EURJPY: 05:00-06:00 GMT box size 80...worked good today..
question to squalou on some pairs.. i have " the robot has been suspended. Reason: you need to change the Magicnumber input" even after change it's still written.. is normal?Ignored