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
- - - - -

Intrebare script QUICK BUY/SELL


  • Please log in to reply
12 replies to this topic

#1 Apollo

Apollo

    Big Shark

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

Posted 04 December 2012 - 02:43 PM

Salut,

In platforma de la IBFX exista niste scripturi utile pentru deschidere rapida de ordine prin combinarea a doua taste.

extern int MagicNumber = 915;
extern double		 Lots = 0.01; /* If you want to use a static lots value change this value! */
extern double		 Risk = 1.0; /* If you want the script to use % of your account to calculate
									 Lots to trade make sure Lots is set to 0.0 */
extern int	 Slippage = 3;																				
extern int	 StopLoss = 10;	 // Number in Pips ie: 50 for 50 pips.
extern int ProfitTarget = 30;	 // Number in Pips ie: 50 for 50 pips.
extern int	 MaxRetry = 10;	 // If the Order Fails - How many time do we retry?
extern string Commentary = "IBFX - Quick Sell ";

In codul de mai sus am anumite dubii in legatura cu Risk. Daca eu setez 1.0, inseamna ca scriptul va folosi un procent din cont ,1%, pentru a seta lot-ul cu care va fi deschis ordinul raportat la SL-ul presetat? Am inteles bine?
La setarile care sunt acum, la compilare imi da niste warnings dupa ce modific parametrii. Nu stiu unde e problema dar nu pare sa mearga asa cum scrie.

Poate sa se uite cineva peste ele ?



Multumesc.

Attached File  IBFX - Quick Buy.mq4   2.86KB   291 downloads
Attached File  IBFX - Quick Buy - Inputs.mq4   2.28KB   161 downloads
Attached File  IBFX - Quick Sell.mq4   2.88KB   317 downloads
Attached File  IBFX - Quick Sell - Inputs.mq4   2.31KB   162 downloads

"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.




#2 Mangusta

Mangusta

    Forexist activ

  • Members
  • PipPipPipPipPip
  • 255 posts
  • Gender:Male
  • Location:bucuresti

Posted 04 December 2012 - 10:31 PM

Salut,
Pune si fisierul IBFX - Quick Scripts.mqh Acolo este functia MM care spune exact care este treaba cu riskul...

#3 Apollo

Apollo

    Big Shark

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

Posted 05 December 2012 - 01:06 PM

Nu am fisierul asta in directorul unde e instalat mt4 !?!.

1.jpg

2.jpg

Edited by apolo, 05 December 2012 - 01:07 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.


#4 Mangusta

Mangusta

    Forexist activ

  • Members
  • PipPipPipPipPip
  • 255 posts
  • Gender:Male
  • Location:bucuresti

Posted 05 December 2012 - 01:13 PM

Se gaseste in folderul "include" dupa cate stiu.

#5 Criodi

Criodi

    Forexist activ

  • Moderators
  • PipPipPipPipPip
  • 499 posts
  • Gender:Not Telling

Posted 05 December 2012 - 02:03 PM

Formula care o folosesc ei pentru a calcula marimea lotului e urmatoarea:

Lots = ( FinalAccountBalance*(Risk/100.0) ) / (LotSize/Leverage);

FinalAccountBalance este variabila mai mica dintre Equity si Balance. (i.e. if equity < balance, FinalAccountBalance = Equity)
LotSize e marimea unui lot in platforma. Daca tranzactionezi miniloturi 1 lot = 10 000. Loturi normale, 1 lot = 100k. MicroLoturi, 1 lot = 1000
Leverage e self explanatory
Risk e external inputul tau. Procentul care il pui tu. 2, 3, 5 etc la suta.

Rezultatul care il obtii deci NU este numarul de loti care trebuie sa ii folosesti pentru a risca 2% din cont pe un SL de X pips. A se observa ca nicaieri in formula lor numarul de pips nu este folosit.

Daca Leverage e 100:1 iar LotSize e 10 000 atunci LotSize/Leverage = 100. Daca ai un cont de 10 000 si ii dai risk = 1, FinalAccountBalance*risk/100 = 100.Va rezulta deci in acest caz Lots = 1. Indiferent ce SL ai. Daca LotSize ar fi 100 000 Lots ar fi egal cu 0.1

Ce este acest rezultat sincer nu pot sa imi dau seama :). LotSize e acelasi pe toate perechile, Leverage e acelasi pe toate perechile, iar FinalAccountBalance e acelasi pe toate perechile. Lots va fi deci acelasi pe toate perechile chiar daca cifrele importante ca margine blocata per trade sau $/pip difera de la un symbol la altul. O logica trebuie sa aiba ca doar nu-s idioti astia care au scris scriptul insa mie imi scapa logica.

Forumla de care ai nevoie pentru a calcula cati loti trebuie sa deschizi pentru a risca X% din cont pe SL de Y pips e urmatoarea:

LOTS = Risk/Loss

Risk = Suma din cont pe care vrei sa o risti (fie declarata ca suma fixa de la bun inceput fie calculata ca X% din Equity sau Blance)
Loss = Y pips * Tick Value

Tick value poate fi obtinuta programatic din platforma. E valoarea in dolari a fiecarui pip per lot deschis.

Project Mayhem. Organized Chaos. The Bureaucracy of Anarchy. Support groups. Sort of.


#6 Apollo

Apollo

    Big Shark

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

Posted 05 December 2012 - 04:54 PM

Am gasit-o

Attached File  IBFX - Quick Scripts.rar   2.4KB   157 downloads

"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.


#7 Mangusta

Mangusta

    Forexist activ

  • Members
  • PipPipPipPipPip
  • 255 posts
  • Gender:Male
  • Location:bucuresti

Posted 05 December 2012 - 05:13 PM

Apolo ti-a raspuns Criodi inainte ..

#8 Apollo

Apollo

    Big Shark

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

Posted 06 December 2012 - 11:05 AM

Da, multumesc de lamuriri la amandoi, am crezut ca mai ai tu ceva de adaugat.

"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.


#9 Mangusta

Mangusta

    Forexist activ

  • Members
  • PipPipPipPipPip
  • 255 posts
  • Gender:Male
  • Location:bucuresti

Posted 06 December 2012 - 01:39 PM

Apolo, initial nu am vazut postul lui Criodi si incepusem sa scriu..
Nu mai am de adaugat nimic.A spus Criodi cea ce vroiam sa iti spun si eu numa ca mult mai bine :)

#10 Apollo

Apollo

    Big Shark

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

Posted 08 February 2013 - 01:28 PM

Poate cineva sa ma ajute cu corectarea urmatoarelor scripturi ?

Dupa ce le-am pus hotkey nu ruleaza, nu stiu de ce. M

Multumesc.

Attached File  Sell with SL and TP without conf.mq4   1.69KB   189 downloads
Attached File  Buy with SL and TP without conf.mq4   1.69KB   178 downloads

"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.





1 user(s) are reading this topic

0 members, 1 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.