[WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you. - page 220

 
napaceHok писал(а) >>
How to make at the moment of test visualisation to see iMA on the chart window ?

Press Start, Pause immediately, drop the Indicator on the chart that appears, Continue.

 
AndBar >> :

Zdravstvyjte, nygna pomoshch,

Nukak ne mogy ylovut gde oshubka :-(


Kod:


tup_vidkrutogo_ordera = OP_BUY;


// Strochku koda ------


double tsina;
bool zminna_order_close = false;
//--------------
while (zminna_order_close == false)
{
RefreshRates();
if (tup_vidkrutogo_ordera == OP_SELL) tsina = Ask;
if (tup_vidkrutogo_ordera == OP_BUY) tsina = Bid;

zminna_order_close = OrderClose(nomer_tiketa,0.1,tsina,30,Gray);
//Vuklukaemo fynktsiyu vuznachennya pomulok
//Yakshcho krutuchna pomulka todi int start() ne vukonyetsya
Alert("Iteratsiya_close");
if ( oprudilennya_vagnosti_pomulku(GetLastError()) == 3 )
{
expert_torgye = false;
Alert("Vidbylasya krutuchna pomulka pru zakrutti ordera, ",
" eksperty zaboronyaemo torgyvatu");
return(0);
}
if(zminna_order_close == true)
{
nomer_tiketa = -1;
break;
}
Sleep(6000);
}

vudaet - Error: 129 - Incorrect bid or ask price, possibly non-normalised price


Shchot at DTS Alpari


eslu tup_vidkrutogo_ordera = OP_SELL- zakruvaet bez problem.


P.S. Porul v nete pro oshubky, pruchunu y otvetu nashol, no y menya ne rabotaet :-(

Spasubo vs all kto chutal etot post u prudaval vnumanue. Problems reshul.

 
napaceHok >> :
how to make it possible to see iMA on the chart window during test visualisation ?

Nygno sohranut shablon charta gde fugyruryyut indukatoru s tem ge umenem chto u expert

 
napaceHok >> :
how to make the iMA visible on the chart window at the time of test visualisation ?

Press pause. Go to indicators menu and add any, or you can load an already configured profile (templates menu).

 
In my folder D:\Program Files\SIGTrader\experts\logs the LOG files are growing to some unreal size (1gb or more). Does anybody know what is the problem or how to fix it. Thank you.
 
napaceHok писал(а) >>
How to make it possible to see the iMA on the chart window at the moment of testing visualization ?
MrSoros wrote >>.
Click on pause. >> Go to menu Indicators and add any, or you can already set up a profile (menu templates) load.

How do I do this programmatically? The thing is, the Expert Advisor changes the average period, so we need to implement it in such a way, that its look changes with every new bar. I.e., for the average to "dance" as it were.

 

Help to write an Expert Advisor !

Algorithm of trading system:
2 counter-orders are opened at the current price with lot "X".
Every "N" points up and down from the current price level another
pairs of pending counter-orders of the same face value "X" are opened.
Let there be 10 pairs of pending orders above and below the price to avoid overloading the trading flow with
by extra pending orders. The main thing is that the Expert Advisor always make sure that
updates them as they are executed.
The lot, profit and distance to the next pending pair have to be specified in the EA settings.
The Expert Advisor should monitor all pending orders and open positions,
and if any order reaches a profit, it should immediately update the worked order
(place an pending order at the same price and with the same value as the worked order).
That is actually the whole strategy.
The result of such trade will be as follows:
At price movement in any direction passing "N" points will trigger a profit "N"
points
. Thus one order will work with a profit, and another remains open with a loss of "N" points
the Expert Advisor immediately updates the worked out order with a new pending order
. At the further price movement the picture will repeat, and all this will proceed while the price does not
turn round. all this time money on balance will grow (the lot is specified in adjustments).
When the price reverses, you'll start earning money, because all losing trades
will begin to close with profits, and the newly updated pending orders will
also bring profit.
Earnings occur during price fluctuations, at the same time the deposit can
withstand a long unidirectional market movement
(which is not infinite)
This strategy is very difficult to implement in manual trading,
because counter orders on the chart merge into one line, and control triggered
orders is very difficult, because they can be very many and can
make a mistake, which will lead to difficulties in trade.
An expert program could automate all this.
The Expert Advisor should also be ready for a disconnection from the Internet and in this case
it should clearly recognise its orders when you switch it on again.
If there are gaps between orders the Expert Advisor should just update missing
orders, without duplicating the current ones.
There should always be only one pair of pending orders at one price,
and the order should be updated by a new pending order only when its place is empty.

 

As promised, I am posting the anti requote code:

while(!OrderClose(OrderTicket(),OrderLots(), price,3, Color))
   { 
    Print("Ошибка при закрытии ордера! ED:", ErrorDescription(GetLastError()));
    Sleep( Sleep_);
    RefreshRates();
    if(OrderType()==OP_BUY && Bid>= price) { price=Bid; continue;}
    if(OrderType()==OP_SELL && Ask<= price) { price=Ask; continue;}
    Print("ППЦ... Цена ушла! Хотел закрыть по ", price,", а щас уже Ask=",Ask,", Bid=",Bid);
    break;
   }



 
napaceHok >> :

How do I do this programmatically? The thing is, the Expert Advisor changes the average period, so we need to implement it in such a way, that its look changes with every new bar. I.e., for an average to "dance" as it were.

>> It's more difficult... Will one (last) point be enough for you?

 
napaceHok писал(а) >>

How do I do this programmatically? The thing is, the Expert Advisor changes the average period, so we need to implement it in such a way, that its look changes with every new bar. So, we need to implement it in such a way, that the average would "dance" on it.

MrSoros 11.09.2009 14:03

This is more complicated... Will one (last) point be enough for you?

----

No, it's not.

Ideally there are two options:

1. Nail down the "old" average and initialise the new one.

2. change the period of the old one and redraw it.

But to do that, first you have to learn how to draw at least one average dynamically.

Any ideas?

Reason: