You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Don't men (rudeness left out) have no hands to sort it out?
Is this the place (rudeness left out), or has anyone had a chance to look at the council too?
But then, for example, at night I try to place an order to modify the order, and you are asleep and, of course, the window does not open until morning, and then the train has left, the order is not closed. That is why I wanted to ask you if I am doing something wrong.
Stops of course I tried first thing, it passes, but then for example at night it throws out an order to modify the order, and you sleep and of course the window doesn't pass until morning, and then all train has left, the order is not closed. I would like to ask you if I am doing something wrong.
Thank you very much, it seems to be working, at least it has modified the order itself, let's see what happens next. Thank you again
Yuri, hi. I understand the question is off-topic, but I've now realised after reading the above that it's useless to write to ICQ. I am not a spammer. I'm not a spammer, I've been trading forex for two years on the Forex market on Kvik, and I've been using MT4 for half a year. I use predominantly indices, i have downloaded your Afrikan and trading on demo account, i got the results, i have adjusted my lot size, but the problem is i may be i dont understand something. I don't know what to do when I try to place a Stop Loss or Take Profit order manually. I don't know what to do. I would like to place an automatic order. I do not know how to order my forex robot, I have to use it as an automatic feeder.
//+------------------------------------------------------------------+
// wait for the trading thread to become free
while(IsTradeContextBusy()==true) {}
// place a position
ticket=OrderSend(Symbol(),OP_BUY,_Lot,Ask,10,NULL,NULL,MAGIC,0,CLR_NONE);
// if a position has opened, set stops in it
if (ticket>0) {
MakeStops(ticket,_StopLoss,_TakeProfit);
}
//+------------------------------------------------------------------+
// procedure of setting a stop
void MakeStops(int T,int SL, int TP) {
double newsl=0,newtp=0;
bool mod=false;
OrderSelect(T,SELECT_BY_TICKET,MODE_TRADES);
mod=false;
if (OrderSymbol()==Symbol() && OrderMagicNumber()==MAGIC) {
if (OrderType()==OP_BUY) {
if (SL>0) {newsl=OrderOpenPrice()-SL*Point;}
if (TP>0) {newtp=OrderOpenPrice()+TP*Point;}
mod=true;
}
if (OrderType()==OP_SELL) {
if (SL>0) {newsl=OrderOpenPrice()+SL*Point;}
if (TP>0) {newtp=OrderOpenPrice()-TP*Point;}
mod=true;
}
if (mod==true) {
while(IsTradeContextBusy()==true) {}
OrderModify(OrderTicket(),OrderOpenPrice(),newsl,newtp,0,CLR_NONE);
}
}
return(0);
}
//+------------------------------------------------------------------+
Please forgive me for being a lamer and dummie writing code. :-)
I will also risk to suggest a variant for WHC. The Expert Advisor is made for the Dax Index strictly according to the AI Expert Advisor code. Two in one. The perceptron of one is made on the BEARS indicator, while the perceptron of the other is made on the BULLS indicator.
One version is supposed to give more accurate signals for long positions, while the second version gives signals for short positions. When enabled together - "there will be happiness" ("all ingenious things are simple"). Once again, the Expert Advisor is adapted to WHC. For Dax the stops should be multiple of 5 (and optimized stops by step=5).
We have tested it on m5 during two months with lot=0.1.
It has been adapted very simply - after each order (with zero stops):
I forgot to warn you - it's too early to use the expert in real life. It is only a rough workpiece for the experiment. By the way, the Expert Advisor's author (my fellow countryman!) just now warned me by ICQ that it should not work sensibly online. This is because the operation of setting stops after opening a position is not quite correct. It is too primitive.
But it works! .... Checked many times in the WHC! And stops are set. And positions are reversed. This is something to see...!
There is just one little thing. I've already asked this question in a general way. Here's the thing. When running BULLS and BEARS versions together, the total profit, for some reason, is somewhat less. Than if you run the versions separately and sum up the results!
For example, separately versions give about +3500 profit per month each. And when you run it together - you get about +6300/6500. I do not understand why ! Can someone figure it out? Experts! Tell me...
For example, individually, the versions are each about +3500/month. When you run them together, it's about +6300/6500. I do not understand why! Can anyone figure it out? Experts! Tell me...
The versions are supposed to have different magics. And both can work long and short... They should not interfere with each other... Although, I have to think about it, try to figure out....
Compare the logs of Expert Advisors. Most likely, there is a discrepancy in the opening time somewhere (total variation). While 1 order is opening, the second one is waiting. While waiting - the price has gone, consequently, it has opened at a different price than it was during the separate testing.