Jump to content


[01 martie 2015] Vamist este prima si cea mai mare comunitate Forex din Romania. A luat nastere in 2005 si de-a lungul timpului a trecut prin mai multe transformari. Acum, dupa 10 ani, primim orice fel de traderi si investitori. Deci, indiferent daca tranzactionezi sau investesti in actiuni, valute, marfuri sau orice alt instrument, bine ai venit!

Vamist se transforma in comunitatea traderilor retail. Aceasta versiune a forumului va fi in continuare accesibila pentru oricine, dar numai in format read only.

Noua adresa este vamist.ro. Te asteptam acolo la discutii generale despre trading.

Photo
- - - - -

Cod de activare/anulare a pendingului


  • Please log in to reply
15 replies to this topic

#11 Magicianul

Magicianul

    Forexist activ

  • Members
  • PipPipPipPipPip
  • 379 posts
  • Gender:Male

Posted 09 September 2013 - 06:40 PM

{
int signal, none, buy , sell;
int signal=none;
double n=2;
double m=2;
double BuyEntry=High[1]+n*Point;
double SellEntry = Low[1]-m*Point;

if (Close[1]>Open[1])signal=buy;
if (Close[1]<Open[1])signal=sell;

if (signal==buy)// OpenPendingBuy();
result = OrderSend(Symbol(),OP_BUYLIMIT,GetLots(),BuyEntry,slippage,stop_loss,take_profit,"Long",0,0,CLR_NONE);

if (signal==sell)//OpenPendingSell();
result=
OrderSend(Symbol(),OP_SELLSTOP,GetLots(),SellEntry,slippage,stop_loss,take_profit,"Short",0,0,CLR_NONE);

return(res);

{
int signal, none, buy , sell;
int signal=none;
double n=2;
double m=2;
double BuyEntry=High[1]+n*Point;
double SellEntry = Low[1]-m*Point;

if (Close[1]>Open[1])signal=buy;
if (Close[1]<Open[1])signal=sell;

if (signal==buy)// OpenPendingBuy();
result = OrderSend(Symbol(),OP_BUYLIMIT,GetLots(),BuyEntry,slippage,stop_loss,take_profit,"Long",0,0,CLR_NONE);

if (signal==sell)//OpenPendingSell();
result=
OrderSend(Symbol(),OP_SELLSTOP,GetLots(),SellEntry,slippage,stop_loss,take_profit,"Short",0,0,CLR_NONE);

return(res);

In mare cam asta e codul ... nu e complet , nu e bine aranjat ... si nici nu stiu daca functioneste ... dar cam asta e ideea ta (asa cum o vad eu ... ceva scris la repezeala...)

double Price=(Open+High+Low+Close)/4;
{
if (ORDER_TYPE==OP_BUYLIMIT)
{
if ( Price < BuyEntry-Low[1]-n*Point )
DeletePendingBuy();
}
else
{
If(ORDER_TYPE==OP_SELLLIMIT)
{
if (Price>SellEntry+High[1]+m*Point)
DeletePendingSell();
)

double Price=(Open+High+Low+Close)/4;
{
if (ORDER_TYPE==OP_BUYLIMIT)
{
if ( Price < BuyEntry-Low[1]-n*Point )
DeletePendingBuy();
}
else
{
If(ORDER_TYPE==OP_SELLLIMIT)
{
if (Price>SellEntry+High[1]+m*Point)
DeletePendingSell();
)

Cam asta ar fi conditia de delete al ordinului , dupa cum inteleg eu ...
daca lumanarea se inchide si ordinul nu e activat , ordinul (BuyStop de exemplu) se inchide in momentul in care pretul (Price) scade sub Low -ul lumanarii cu pricina....


Acuma am realizat ca am scris gresit ....
in acele coduri (sau icercare de cod ) am vrut sa scriu OP_BUYSTOP si nu BUYLIMIT

OP_SELLSTOP si nu SELLLIMIT ...

scuze

...


astept si eu sa vad ce corecturi aduceti textului ...
poate mai prind si eu cate ceva din zbor ....


@ Apolo... tare am senzatia ca am vazut pe undeva ... ea-ul asta ....
scris... nu mai stiu exact unde... insa imi pare cunoscut ...

Edited by Apollo, 09 September 2013 - 07:12 PM.




#12 Apollo

Apollo

    Big Shark

  • Banned
  • PipPipPipPipPipPipPipPipPip
  • 1382 posts
  • Gender:Male
  • Location:In munti...
  • Broker curent LMAX

Posted 09 September 2013 - 07:13 PM

Iti pare cunoscut ca ai citit conditiile :)) . Il stii deja , ia cauta prin PM. 


"Imposibilul e un cuvant care se gaseste numai in dictionarul nãtângilor."

"Remember that if you practice strict money management rules, you will become the casino and in the long run, "you will always win."

 

"If you have ever watched one  of the nature programs  on television  about how many species of fish hunt, you may  have seen  the larger fish that create "bait balls"  by coralling  smaller fish into a tight group."

 

Money moves the market, not an indicator.


#13 Magicianul

Magicianul

    Forexist activ

  • Members
  • PipPipPipPipPip
  • 379 posts
  • Gender:Male

Posted 09 September 2013 - 08:18 PM

Ce este PM ?

Ce coduri am citit ?

n-am citit niciun cod...

 nu stiu despre ce vorbesti...

   am zis sa incerc sa dau un prim imbold ideii tale , poate s'a gasi unu' mai istet ca mine sa faca treaba buna ... ca doar nu's eu cel mai bun ...



#14 Apollo

Apollo

    Big Shark

  • Banned
  • PipPipPipPipPipPipPipPipPip
  • 1382 posts
  • Gender:Male
  • Location:In munti...
  • Broker curent LMAX

Posted 09 September 2013 - 08:54 PM

Cine a zis de coduri ?  :blink:   

 

PM  = Private Message


"Imposibilul e un cuvant care se gaseste numai in dictionarul nãtângilor."

"Remember that if you practice strict money management rules, you will become the casino and in the long run, "you will always win."

 

"If you have ever watched one  of the nature programs  on television  about how many species of fish hunt, you may  have seen  the larger fish that create "bait balls"  by coralling  smaller fish into a tight group."

 

Money moves the market, not an indicator.


#15 Magicianul

Magicianul

    Forexist activ

  • Members
  • PipPipPipPipPip
  • 379 posts
  • Gender:Male

Posted 09 September 2013 - 09:37 PM

M-am uitat oleaca in PM ... n-am gasit niciun cod ...

  Eu am senzatia ca am vazut undeva EA-ul asta ... asta incercam sa zic ...

 hm....

  ar trebui sa  ma tii mai  presus de orice banuiala...


Edited by Magicianul, 09 September 2013 - 09:37 PM.


#16 Apollo

Apollo

    Big Shark

  • Banned
  • PipPipPipPipPipPipPipPipPip
  • 1382 posts
  • Gender:Male
  • Location:In munti...
  • Broker curent LMAX

Posted 10 September 2013 - 07:10 AM

Offtopic


"Imposibilul e un cuvant care se gaseste numai in dictionarul nãtângilor."

"Remember that if you practice strict money management rules, you will become the casino and in the long run, "you will always win."

 

"If you have ever watched one  of the nature programs  on television  about how many species of fish hunt, you may  have seen  the larger fish that create "bait balls"  by coralling  smaller fish into a tight group."

 

Money moves the market, not an indicator.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Tranzactiile forex implica un grad ridicat de risc. Informatiile de pe acest site NU reprezinta recomadari de tranzactionare sau investitii.
Administratorii vamist.ro nu-si asuma responsabilitatea pentru eventualele probleme sau pierderi materiale aparute in urma utilizarii informatiilor de pe site.