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

 
himik:
Are there any people who will write an EA for providing a trading system, well I don't have an extra 50-100 quid! The trading system really works and is very simple!!! But based on MASD and muwings, it also takes into account one factor... It works on dolar/lb, euro/dollar, i cant test it on others.... On this one on cents I have been trading successfully for 3 months now but I miss about 70 percent of entry points!!! Help...

This is the right place for you.
 

2011.08.12 17:00:08 Regress GBPJPY,M15: Alert: Ordersend_Number387739002
2011.08.12 17:00:08 Regress GBPJPY,M15: open #3877390 buy 0.01 GBPJPY at 124.95 sl: 123.32 tp: 125.15 ok
2011.2011.08.12 17:00:07 Regress GBPJPY,M15: Alert: GBPJPY1
2011.08.12 17:00:07 Regress GBPJPY,M15: Alert: Ordersend_Number-11292
2011.08.12 17:00:05 Regress GBPJPY,M15: Alert: GBPJPY1

Sometimes it slips through the cracks.

 
grell:

2011.08.12 17:00:08 Regress GBPJPY,M15: Alert: Ordersend_Number387739002
2011.08.12 17:00:08 Regress GBPJPY,M15: open #3877390 buy 0.01 GBPJPY at 124.95 sl: 123.32 tp: 125.15 ok
2011.2011.08.12 17:00:07 Regress GBPJPY,M15: Alert: GBPJPY1
2011.08.12 17:00:07 Regress GBPJPY,M15: Alert: Ordersend_Number-11292
2011.08.12 17:00:05 Regress GBPJPY,M15: Alert: GBPJPY1

Sometimes it slips through the cracks.

Because it's not about RefreshRates()... How do you extract the error code from your Alert?
 
himik:
Are there any people who will write an EA for providing a trading system, well I don't have an extra 50-100 quid! The trading system really works and is very simple!!! But based on MASD and muwings, it also takes into account one factor... It works on dolar/lb, euro/dollar, i cant test it on others.... On this one on cents I have been trading successfully for 3 months now but I miss about 70 percent of entry points!!! Help...
So can anyone help write an EA on my profitable strategy ?
Can you tell me who can write an EA on my idea ?
 
MaxZ:
How do you extract the error code from your Alert?

I think I should have taken the topic to the telepaths instead of here.

He's just messing with us.

 

Good day :(

First the code:

    for (int y = OrdersHistoryTotal()-1; y >= 0; y--)
    {
        if (OrderSelect(y, SELECT_BY_POS, MODE_HISTORY))
            if (OrderSymbol() == Symbol() && (OrderComment() == "Aelit"+DoubleToStr(lot, 1) || OrderComment() == "Aelit"+DoubleToStr(lot, 1)+"[sl]"))
            {
                if (OrderProfit() < 0)
                {
                    while (tempLot <= OrderLots())
                    {
                        tempLot += lot;
                        tempCount--;
                    
                        if (tempCount == 0)
                        {
                            tempCount = countLot;
                            tempLot = lot;
                        
                            break;
                        }
                    }
                }
                
                return;
            }
    }

lot = 0.1, tempLot(first) = 0.1, OrderLots() = 0.3, tempCount is not important in this example.

I'm in a panic, why the loop goes like while (tempLot < OrderLots()) exactly when such values of variables, as I wrote above? I.e. iterates twice instead of three times! O_O I did while (tempLot <= OrderLots()+0.1) and everything was fine, iterating four times.

Thanks for your attention :(

 

Replace

while (tempLot <= OrderLots())

to

while (NormalizeDouble(tempLot,1) <= OrderLots())
 

Tested the same loop on a normal script and my brain is out of my ears, this kind of loop doesn't work with 0.3 Code:

int start()
{
    double i = 0.1;
    while (i <= 0.3)
    {
        Alert(i);
        i += 0.1;
    }Alert(i);
    
    return;
}

Last alert with 0.3, not 0.4. What is this nuisance...?

 

to Roger:

Oh, the horror! You're a magician...? Cerebral satisfaction will stay with me all weekend. Thank you very much...

 
T3FastPeriod = MathMax(1,T3FastPeriod);
      if (T3FastOriginal)
           alphaFast = 2.0/(1.0 + T3FastPeriod);
      else alphaFast = 2.0/(2.0 + (T3FastPeriod-1.0)/2.0);


Народ,подскажите,будте добры: Что может значить отсутствие последней строки в индюке?