very good input
Cheers
Tommaso
We are only interested in Trade type B1 and C1.Trade A1 enters and makes Pips till “THE TREND” ends
Trade B1 enters, makes pips, makes pips, goes sour during a retracement and turns winning at the resumption of the trend till “THE TREND” ends.
Trade C1 enters makes pips, makes pips, goes sour, since the trend does not resume and ends with a loss.
Trade D1 goes sour and gets stopped out
TonkaTuff, thanks. Great you made it clear, though – a picture says more than 1000 words - I do not understand how you get at diagram #2, since we would only reenter when retracement has finished as you draw on diagram #3. Since "THE TREND" is defined by Marilyn and the trade is only stopped out, when "THE TREND" is finished – that is how I understand Marilyn - I’ld suggest to draw the SL-Sell of trade C1 (the yellow line) on the same vertical line as the sell of the blue line. So your (slightly modified) diagrams #1 and #3 express the idea. Yes, that would be it. I attach a PP, we can continue to modifyTonkaTuff wrote:...To clarify I've done a couple of diagrams to explain how I understand your proposal. TT
Yes green, too - you have many, many open tradesphil_trade wrote:as I told : patience is the key : Trend is running well !
Hope everyone is in green pips !
Hi MikeMike wrote:Yes green, too - you have many, many open tradesphil_trade wrote:as I told : patience is the key : Trend is running well !
Hope everyone is in green pips !I have 2.
Is it possible that it's due to my DeltaPipsMA25=10, while you said, you have DeltaPipsMA25=0. I also have MaxUnprotctedTrades=2 (and I do not really understand what that means) and MaxTrades=100.
Thanks for this ea, Mike
phil, yes AUDJPY, AUDUSD, CHFJPY, EURJPY, EURUSD, GBPUSD, USDCHF, XAUUSD on D1 each with the EA (smiling) attached to its chart.phil_trade wrote:Hi MikeMike wrote:Yes green, too - you have many, many open tradesphil_trade wrote:as I told : patience is the key : Trend is running well !
Hope everyone is in green pips !I have 2.
Is it possible that it's due to my DeltaPipsMA25=10, while you said, you have DeltaPipsMA25=0. I also have MaxUnprotctedTrades=2 (and I do not really understand what that means) and MaxTrades=100.
Thanks for this ea, Mike
Is it possible that it's due to my DeltaPipsMA25=10 -> No, 10 is more aggressive than 0. You would have more trades
MaxUnprotctedTrades=2 -> Only 2 trades for same pairs could be open if no SL set yet.
Do you managed 8 charts for the 8 pairs I recommend ?
Philippe
I'm using 700% Margin Min to tradeMike wrote:phil, yes AUDJPY, AUDUSD, CHFJPY, EURJPY, EURUSD, GBPUSD, USDCHF, XAUUSD on D1 each with the EA (smiling) attached to its chart.phil_trade wrote:Hi MikeMike wrote:Yes green, too - you have many, many open tradesphil_trade wrote:as I told : patience is the key : Trend is running well !
Hope everyone is in green pips !I have 2.
Is it possible that it's due to my DeltaPipsMA25=10, while you said, you have DeltaPipsMA25=0. I also have MaxUnprotctedTrades=2 (and I do not really understand what that means) and MaxTrades=100.
Thanks for this ea, Mike
Is it possible that it's due to my DeltaPipsMA25=10 -> No, 10 is more aggressive than 0. You would have more trades
MaxUnprotctedTrades=2 -> Only 2 trades for same pairs could be open if no SL set yet.
Do you managed 8 charts for the 8 pairs I recommend ?
Philippe
I will lower Margin since I am at 1500% with these 2 trades.
Code: Select all
void MoveSLOnStoch(string strSymbol, int nMagic)
{
double NewSL=0;
for (int i=OrdersTotal()-1 ; i>=0 ; i--)
{
if (!OrderSelect(i,SELECT_BY_POS)) continue;
if (OrderType() == OP_SELL)
{ if (OrderMagicNumber() == nMagic)
if (OrderSymbol() == strSymbol)
if ((iStochastic(strSymbol,PERIOD_OSC,10,3,3,MODE_SMA,1,MODE_SIGNAL,0)<(100-StochOBOSToMoveSL))
|| (iStochastic(strSymbol,PERIOD_OSC,10,3,3,MODE_SMA,1,MODE_SIGNAL,1)<(100-StochOBOSToMoveSL))
|| (iStochastic(strSymbol,PERIOD_OSC,10,3,3,MODE_SMA,1,MODE_SIGNAL,2)<(100-StochOBOSToMoveSL)))
if (iStochastic(strSymbol,PERIOD_OSC,10,3,3,MODE_SMA,1,MODE_MAIN,0)>iStochastic(strSymbol,PERIOD_OSC,10,3,3,MODE_SMA,1,MODE_SIGNAL,0))
{
if(UseHighLowCalcForMoveSLOnStoch==true)
{
NewSL=ReturnHighOpenPrice(strSymbol,MagicNumber,OrderTicket());
}
else
{
NewSL=ReturnLowOpenPrice(strSymbol,MagicNumber,OrderTicket());
}
if((NewSL-Bid)>(DeltaPipsMoveSLOnStoch*Point))
{
NewSL=ReturnLowOpenPrice(strSymbol,MagicNumber,OrderTicket());
if( ((NewSL<OrderStopLoss())||(OrderStopLoss()<(1*Point))) && (NewSL!=9999) && (NewSL > Bid + (10*multiplier*Point)) )
{
//OrderModify(OrderTicket(),OrderOpenPrice(),NewSL,OrderTakeProfit(),0,CLR_NONE);
Alert("MoveSLOnStoch :Attempting to move SL of ",strSymbol," to ",NewSL);
Print("MoveSLOnStoch :Attempting to move SL of ",strSymbol," to ",NewSL);
ModifyOrder(OrderTicket(),NewSL,0);
}
}
}
}
if (OrderType() == OP_BUY)
{ if (OrderMagicNumber() == nMagic)
if (OrderSymbol() == strSymbol)
if ((iStochastic(strSymbol,PERIOD_OSC,10,3,3,MODE_SMA,1,MODE_SIGNAL,0)>StochOBOSToMoveSL)
|| (iStochastic(strSymbol,PERIOD_OSC,10,3,3,MODE_SMA,1,MODE_SIGNAL,1)>StochOBOSToMoveSL)
|| (iStochastic(strSymbol,PERIOD_OSC,10,3,3,MODE_SMA,1,MODE_SIGNAL,2)>StochOBOSToMoveSL))
if (iStochastic(strSymbol,PERIOD_OSC,10,3,3,MODE_SMA,1,MODE_MAIN,0)<iStochastic(strSymbol,PERIOD_OSC,10,3,3,MODE_SMA,1,MODE_SIGNAL,0))
{
if(UseHighLowCalcForMoveSLOnStoch==true)
{
NewSL=ReturnLowOpenPrice(strSymbol,MagicNumber,OrderTicket());
}
else
{
NewSL=ReturnHighOpenPrice(strSymbol,MagicNumber,OrderTicket());
}
NewSL=ReturnHighOpenPrice(strSymbol,MagicNumber,OrderTicket());
if((Bid-NewSL)>(DeltaPipsMoveSLOnStoch*Point))
{
if( ((NewSL>OrderStopLoss())||(OrderStopLoss()<(1*Point))) && (NewSL!=0) && (NewSL < Bid - (10*multiplier*Point)) )
{
//OrderModify(OrderTicket(),OrderOpenPrice(),NewSL,OrderTakeProfit(),0,CLR_NONE);
Alert("MoveSLOnStoch :Attempting to move SL of ",strSymbol," to ",NewSL);
Print("MoveSLOnStoch :Attempting to move SL of ",strSymbol," to ",NewSL);
ModifyOrder(OrderTicket(),NewSL,0);
}
}
}
}
}
return;
}