Adviser to the whole world - page 68

 

Is this how it's supposed to be?

//........................................................................................
double MG=AccountFreeMargin(), Min_Lot = MarketInfo(Symb, MODE_MINLOT),Lots;
if(margin>0)
{
int m=MG/MarketInfo(Symb, MODE_MARGINREQUIRED)*margin/Min_Lot;
Lots = m*Min_Lot;
if(Lots < Min_Lot)
Lots =Min_Lot;
if(Lots > MarketInfo (Symb, MODE_MAXLOT))
Lots = MarketInfo (Symb, MODE_MAXLOT);
int x = KrossUSD_CHF*m;
LotsPara=MarketInfo(SymbPara, MODE_MINLOT)*x;
}
if(margin==0)
{
Lots = Lot;
int k = KrossUSD_CHF*Lots/Min_Lot;
LotsPara = MarketInfo(SymbPara, MODE_MINLOT)*k;
if(LotsPara<MarketInfo(SymbPara, MODE_MINLOT))LotsPara=MarketInfo(SymbPara, MODE_MINLOT);
}
//..........................................................................................
 
wrong... bring everything to the same denominator...pipsollar...
 
Aleksander:
wrong... get it to the same denominator... pipsolar...

That's what I'm trying to do... it's like, to calculate the lot of the second pair, multiply the lot of the main pair by the crossover...

the main pair's lot no problem... but what about the second one? i'm basing this on the Expert Advisor's one... so write me a note to correct it

 
sllawa3:
What I'm trying to do... to calculate the lot of the second pair the lot of the main pair should be multiplied by the cross


I'm getting the hang of it for now. I'm out of coffee - tea doesn't help much. The drawings are frozen.

Analized deals of the same type:

SELL GBPUSD - blue, BUY EURUSD - red

 
and I still have to watch the movie that sent the link
 
sllawa3:
and I still have to watch the movie that sent the link

Good for you. I don't have a lot of time.
 

Well, the main pair is testing ... it is unclear what is on the second ...

Bars in history 2440
Simulated ticks 57693
Simulation quality 25.00%
Chart mismatch errors 0
Initial deposit 1000.00
Net profit 364.00
Total profit 675.00
Total loss -311.00
Profitability 2.17
Expectation of winning 30.33
Absolute drawdown 128.00
Maximum drawdown 481.00 (35.06%)
Relative drawdown 35.06% (481.00)
Total trades 12
Short positions (% win) 6 (66.67%)
Long positions (% win) 6 (50.00%)
Profitable trades (% of all) 7 (58.

33%)
Loss trades (% of all) 5 (41.67%)
Largest
profitable trade 177.00
losing trade -249.00
Average
profitable trade 96.43
losing trade -62.20
Maximum
continuous wins (profit) 4 (290.00)
continuous losses (loss) 3 (-284.00)
Maximum
continuous gains (number of wins) 385.00 (3)
continuous loss (number of losses) -284.00 (3)
Wed
 

ok... write down what the lot of the second pair should be in terms of the lot of the main pair...

Bye-bye, everybody... (... and me the movie)... by the way... an idea: what if we allow closing when the equity is higher than the balance? let them walk as much as they want... they are locked ! and in the meantime let them keep opening positions according to the conditions...

 
sllawa3:

OK... write down what the lot of the second pair should be in relation to the lot of the main pair...

Bye-bye, everybody... (well, a movie for me)...

Slava!

I respect you immensely for your turgor.

But this is grotesque...

;)

 
;)
Reason: