[ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3. - page 328

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
How many EAs do you have with this PV and at the same time the number of trades is at least 200 (100 on Buy and 100 on Sell)?
If you set not only "net profit" parameter, but also "recovery factor" or the maximal drawdown - and look from these positions.
Hello!
I can't figure out how to make a custom function return multiple values? Could you give me a hint?
This is not Pascal - there are no procedures...:-) One function - one value...:-)
See the GetMarketInfo function of the script for closing all orders - using arrays is possible.
How many EAs do you have with this PV and at the same time you have at least 200 trades (100 for buying and 100 for selling)?
...That's enough. FS = 34. And in fact, that's not the question you asked me...:-) Especially, if you read these branches - the author has clearly written there that these figures
30 for TC and 100 for the portfolio - his IMHO.... "Don't mince words, please. I didn't claim that's the way it should be. 30 is my personal whim. No more than that... "
Roman
...
Sorry, didn't notice you were quoting someone else, but the report is impressive.
Sorry, didn't notice you were quoting someone else, but the report is impressive.
:-) Moving on...
please help!
The code opens two pending orders and should modify both...
But it only modifies the salt pending.
q=20;
pb=Ask+20*Point;
ps=Bid+20*Point;
Tb=Ask+50*Point;
Ts=Bid+50*Pointl;
please help!
The code opens two pending orders and should modify both...
But it only modifies the salt pending.
q=20;
pb=Ask+20*Point;
ps=Bid+20*Point;
Tb=Ask+50*Point;
Ts=Bid+50*Point;
look at the numbers to see what you get
you want to place both a buystop and a sellstop 20 points above the current price
see what you got with the numbers.
you want both buystop and sellstop to be 20 points above the current price
I typed it in by hand...
In the code it goes like this:
pb=Ask+20*Point;
ps=Bid-20*Point;
Tb=Ask+50*Point;
Ts=Bid+50*Point;
extern int shift = 0.0000;
extern int shift2 = 0.0000;
int init()
{
//----
//----
return(0);
}
//+------------------------------------------------------------------+
//| expert deinitialisation function |
//+------------------------------------------------------------------+
int deinit()
{
//----
//----
return(0);
}
//+------------------------------------------------------------------+
//| expert start function |
//+------------------------------------------------------------------+
int start()
{
//----
SetLabel("MA_LABEL",DoubleToStr(iMA(Symbol(),15,variable,0,MODE_SMA,PRICE_CLOSE,0),shift,2),Bisque,735,277,0,14);
SetLabel("MA_LABEL2",DoubleToStr(iMA(Symbol(),15,variable,0,MODE_SMA,PRICE_CLOSE,0),shift2,2),Bisque,680,27 7,0,14)
//----
return(0);
}
//+------------------------------------------------------------------+
void SetLabel(string nm, string tx, color cl, int xd, int yd, int cr=0, int fs=9) {
if (ObjectFind(nm)<0) ObjectCreate(nm, OBJ_LABEL, 0, 0,0);
ObjectSetText(nm, tx, fs);
ObjectSet(nm, OBJPROP_COLOR, cl);
ObjectSet(nm, OBJPROP_XDISTANCE, xd);
ObjectSet(nm, OBJPROP_YDISTANCE, yd);
ObjectSet(nm, OBJPROP_CORNER, cr);
ObjectSet(nm, OBJPROP_FONTSIZE, fs);
}
more tips, please.
I can't get the vertical shift up and shift2 down indentation from the wrist.
this parameter should be set differently for each chart.
I get a compile-time error
I typed it in by hand...
In the code it goes like this:
pb=Ask+20*Point;
ps=Bid-20*Point;
Tb=Ask+50*Point;
Ts=Bid+50*Pointl;
Tb and Ts in the sense of TPb and TPs? then again, went the same way, but the orders are different
take out all the values and see what you get