Adviser to the whole world - page 92 1...858687888990919293949596979899...107 New comment [Deleted] 2010.11.15 18:01 #911 Aleksander: yes, and why waste time :) make it possible if you put a vertical line - so the indicator will make a new chart i.e. old lines remain and new ones are drawn.... even with graphical objects.... That's what I want - to win on the chart first. I'm doing it, I'm doing it. For a vertical line a stop condition is needed - like stop loss. I am now trying to add a leg and see what happens Nested if statements EURUSD - Trends, Forecasts [Indicator] What are the [Deleted] 2010.11.15 18:02 #912 Aleksander: keep spinning the picture :) when they come together :) In a week or two. It's different. Aleksander 2010.11.15 18:10 #913 at the same time you will find out when such events took place :) e.g. September 28 were - 11:30GBRBalance of payments - Current Account Balance2quarter -£9.6bn -£8.2 billion. -£7.4bn 11:30GBRGDP - Final GDP2Quarterly and maybe you will make a conclusion - like - do NOT enter the market when there is bad news for the instrument :) *Daily Forex market overviews Press review Forecast and levels for [Deleted] 2010.11.15 18:27 #914 Aleksander: at the same time you will find out when such events took place :) e.g. on 28 September there were - 11:30 GBR Balance of payments - Current Account Balance Q2 -£9.6bn. -£8.2bn. -£7.4bn 11:30 GBR GDP - Final GDP Q2 and maybe you will make a conclusion - like - do NOT enter the market when there is bad news for the instrument :) You can try it. Or you could enter, but with the opposite algorithm. Again, news analysis is needed - i.e. what the news leads to [Deleted] 2010.11.15 18:35 #915 By the way, I added the following to this EA - reduction of lots by 2 times at night when banks are not working, so I could compete a little longer: double MG=AccountFreeMargin(), Min_Lot = MarketInfo(Symb, MODE_MINLOT),Lots; if(margin>0) { ValuePara=iOpen(SymbPara,PERIOD_M1,0); Value=iOpen(Symb,PERIOD_M1,0); Kross=ValuePara/Value; KB=Kross; KS=Kross; int m=MG/MarketInfo (Symb, MODE_MARGINREQUIRED)*margin/Min_Lot; Lots = m*Min_Lot; if(TimeHour(TimeCurrent())<=4 && TimeHour(TimeCurrent())>=15){Lots=Lots/2;}// work with 15 to 4 smaller lots (time is brought to -4 hours from Moscow) if(Lots < Min_Lot){Lots=Min_Lot;} if(Lots > MarketInfo (Symb, MODE_MAXLOT)){Lots = MarketInfo (Symb, MODE_MAXLOT);} LotsParaB = KB*Lots;LotsParaS = KS*Lots; } if(margin==0){Lots = Lot;LotsParaB = KB*Lots;LotsParaS = KS*Lots;} if(LotsParaB<MarketInfo(SymbPara, MODE_MINLOT)){LotsParaB=MarketInfo(SymbPara, MODE_MINLOT);} if(LotsParaS<MarketInfo(SymbPara, MODE_MINLOT)){LotsParaS=MarketInfo(SymbPara, MODE_MINLOT);} [WARNING CLOSED!] Any newbie Questions from Beginners MQL4 How do I calculate [Deleted] 2010.11.15 18:37 #916 And the trawl is tied to the pips: OrdersProfit=0; OrdersLots=0; if (OrdersTotal()==0){tralim=0;} for(l=1; l<=OrdersTotal(); l++) { if (OrderSelect(l-1,SELECT_BY_POS)==true) { OrdersProfit=OrdersProfit+OrderProfit(); OrdersLots=OrdersLots+OrderLots(); } } if (OrdersTotal()!=0){if(OrdersProfit*0.1/OrdersLots>=tral){tralim=1;}}//........................................................................ for (int q = 0; q < OrdersTotal(); q++) { OrderSelect(q, SELECT_BY_POS, MODE_TRADES); if(tralim==1){ if(OrderType()==OP_SELL& OrderSymbol()==SymbPara)OrderClose(OrderTicket(),OrderLots(),MarketInfo(SymbPara,MODE_ASK),5,CLR_NONE); if(OrderType()==OP_BUY&& OrderSymbol()==SymbPara)OrderClose(OrderTicket(),OrderLots(),MarketInfo(SymbPara,MODE_BID),5,CLR_NONE); if(OrderType()==OP_SELL&& OrderSymbol()==Symb)OrderClose(OrderTicket(),OrderLots(),MarketInfo(Symb,MODE_ASK),5,CLR_NONE); if(OrderType()==OP_BUY&& OrderSymbol()==Symb)OrderClose(OrderTicket(),OrderLots(),MarketInfo(Symb,MODE_BID),5,CLR_NONE); } } Coding help Closing all orders in Super Ea [Deleted] 2010.11.15 18:39 #917 And closing of orders on crossing to profit (here and probably wait for 5 minutes or as long as necessary): if (Ticket_TicketPara==1 && OrdersTotal()!=0 && Value<IndicatorPara && OrdersProfit>0 ) [Deleted] 2010.11.15 18:55 #918 И... It seems to be trading well so far - on the real. I would like to have enough time before a drawdown to make it clearer what to do if something goes wrong. Victor Nikolaev 2010.11.15 18:59 #919 What I saw was no good for real life. There are a number of logical errors. But you can come back to them later [Deleted] 2010.11.15 19:18 #920 Vinin: What I saw was no good for real life. There are a number of logical errors. But you can come back to them later After the flush? Why later? Please advise - let's fix it. It's been a long time since the money melted away. I'm already at $200. I don't have any more. 1...858687888990919293949596979899...107 New comment
yes, and why waste time :) make it possible if you put a vertical line - so the indicator will make a new chart
i.e. old lines remain and new ones are drawn.... even with graphical objects....
That's what I want - to win on the chart first. I'm doing it, I'm doing it.
For a vertical line a stop condition is needed - like stop loss. I am now trying to add a leg and see what happens
keep spinning the picture :) when they come together :)
In a week or two. It's different.
at the same time you will find out when such events took place :) e.g. September 28 were -
and maybe you will make a conclusion - like - do NOT enter the market when there is bad news for the instrument :)
at the same time you will find out when such events took place :) e.g. on 28 September there were -
and maybe you will make a conclusion - like - do NOT enter the market when there is bad news for the instrument :)
You can try it. Or you could enter, but with the opposite algorithm. Again, news analysis is needed - i.e. what the news leads to
By the way, I added the following to this EA - reduction of lots by 2 times at night when banks are not working, so I could compete a little longer:
double MG=AccountFreeMargin(), Min_Lot = MarketInfo(Symb, MODE_MINLOT),Lots;
if(margin>0)
{
ValuePara=iOpen(SymbPara,PERIOD_M1,0);
Value=iOpen(Symb,PERIOD_M1,0);
Kross=ValuePara/Value;
KB=Kross;
KS=Kross;
int m=MG/MarketInfo (Symb, MODE_MARGINREQUIRED)*margin/Min_Lot;
Lots = m*Min_Lot;
if(TimeHour(TimeCurrent())<=4 && TimeHour(TimeCurrent())>=15){Lots=Lots/2;}// work with 15 to 4 smaller lots (time is brought to -4 hours from Moscow)
if(Lots < Min_Lot){Lots=Min_Lot;}
if(Lots > MarketInfo (Symb, MODE_MAXLOT)){Lots = MarketInfo (Symb, MODE_MAXLOT);}
LotsParaB = KB*Lots;LotsParaS = KS*Lots;
}
if(margin==0){Lots = Lot;LotsParaB = KB*Lots;LotsParaS = KS*Lots;}
if(LotsParaB<MarketInfo(SymbPara, MODE_MINLOT)){LotsParaB=MarketInfo(SymbPara, MODE_MINLOT);}
if(LotsParaS<MarketInfo(SymbPara, MODE_MINLOT)){LotsParaS=MarketInfo(SymbPara, MODE_MINLOT);}
And the trawl is tied to the pips:
OrdersProfit=0;
OrdersLots=0;
if (OrdersTotal()==0){tralim=0;}
for(l=1; l<=OrdersTotal(); l++)
{
if (OrderSelect(l-1,SELECT_BY_POS)==true)
{
OrdersProfit=OrdersProfit+OrderProfit();
OrdersLots=OrdersLots+OrderLots();
}
}
if (OrdersTotal()!=0){if(OrdersProfit*0.1/OrdersLots>=tral){tralim=1;}}
//........................................................................
for (int q = 0; q < OrdersTotal(); q++)
{
OrderSelect(q, SELECT_BY_POS, MODE_TRADES);
if(tralim==1)
{
if(OrderType()==OP_SELL& OrderSymbol()==SymbPara)OrderClose(OrderTicket(),OrderLots(),MarketInfo(SymbPara,MODE_ASK),5,CLR_NONE);
if(OrderType()==OP_BUY&& OrderSymbol()==SymbPara)OrderClose(OrderTicket(),OrderLots(),MarketInfo(SymbPara,MODE_BID),5,CLR_NONE);
if(OrderType()==OP_SELL&& OrderSymbol()==Symb)OrderClose(OrderTicket(),OrderLots(),MarketInfo(Symb,MODE_ASK),5,CLR_NONE);
if(OrderType()==OP_BUY&& OrderSymbol()==Symb)OrderClose(OrderTicket(),OrderLots(),MarketInfo(Symb,MODE_BID),5,CLR_NONE);
}
}
And closing of orders on crossing to profit (here and probably wait for 5 minutes or as long as necessary):
if (Ticket_TicketPara==1 && OrdersTotal()!=0 && Value<IndicatorPara && OrdersProfit>0 )
И... It seems to be trading well so far - on the real.
I would like to have enough time before a drawdown to make it clearer what to do if something goes wrong.
What I saw was no good for real life.
There are a number of logical errors. But you can come back to them later
What I saw was no good for real life.
There are a number of logical errors. But you can come back to them later
After the flush? Why later? Please advise - let's fix it. It's been a long time since the money melted away. I'm already at $200. I don't have any more.