Ulimi lwe-algorithmic QPILE lokuhlela amarobhothi okuhweba we-QUIK.
Amarobhothi okuhweba angabhalwa ngolimi oluthile, olufana nekhodi yohlelo. I-QPILE ingenye yazo, isihloko sizocubungula lolu limi, siqhathanise izilimi ze-QPILE ne-
LUA , futhi sinikeze nezibonelo zamarobhothi kulolu limi.
- Ulwazi olujwayelekile mayelana ne-QPILE
- Ukusebenza ngetafula
- I-QPILE iyakha
- Izinhlobo zedatha
- Izinkulumo
- Imisebenzi
- Izinhlelo zokususa iphutha
- I-QPILE noma i-LUA?
- Ungawakha kanjani irobhothi lokuhweba ku-QPILE?
- Ukuhweba amarobhothi ku-QPILE – izixazululo ezenziwe ngomumo
- Irobhothi elimaphakathi elihambayo
- N. Moroshkin wokubala isikhundla
- Isihlungi sevolumu
- Izinketho zamaGreki
- Irobhothi lokuhweba le-TRIX le-QUIK
- Iprosesa ye-M4
Ulwazi olujwayelekile mayelana ne-QPILE
I-QPILE isifinyezo esimele i-QUIK Programmable Interface kanye ne-Logic Environment.
Lolu uchungechunge lwemiyalo ehunyushwa isikhungo sokusebenzela se-QUIK. Isetshenziswa kakhulu ukubala intengo yamaphothifoliyo ezibambiso. Ulimi luphinde lusetshenziselwe:
- ukubalwa kabusha okuguquguqukayo kwentengo yezimpahla zamaklayenti kudeskithophu yomthengisi nasemaphothifoliyo awo. Esimweni sokugcina, inani labo eliphelele liphinde libalwe kabusha;
- ukuthola izinkomba ezingekho kusetshenziswa ama-algorithms azo kanye nedatha yokuboleka imajini;
- ukuthuthukisa isu lokuhweba elilungile.
Ulimi luchaza ukwakheka kwethebula: ukuqokwa kwamakholomu nemigqa, amafomula. Ekugcineni, ukusebenza kwezibalo, okuguquguqukayo, idatha evela kwamanye amathebula ingasetshenziswa ekubaleni. Ikhodi yohlelo elayishwe kuseva ye-QUIK noma kudiski yomsebenzisi icutshungulwa umhumushi wolimi, obala amanani kumafomula. Amathebula ohlelo olulodwa anomthombo owodwa wedatha, kodwa izibalo aziphindanga futhi akuthinti ukusebenza kahle kwesistimu. Uma usebenza ngamathebula e-QUIK, amathebula aku-QPILE anemisebenzi evamile. I-QUIK emsebenzini ifakwe isilungisi sekhodi se-QPILE. https://articles.opexflow.com/software-trading/torgovyj-terminal-quik.htm Ulimi likuvumela ukuthi uchaze amathebula amasha ngesakhiwo esinikeziwe, ugqamise amaseli anamanani athile, ubale izinkambu ngokusekelwe kuzinkulumo zezibalo nezinengqondo. Umsebenzisi uzothola izaziso ngendlela yesignali yomsindo noma umlayezo wombhalo. Amathebula aku-QPILE angahlelwa, aphrintwe, akopishwe, athunyelwe kwamanye amazwe nge-ODBC neseva ye-DDE. Idatha yokuqala isuka kumathebula e-QUIK:
- ukuthengiselana, okuhlanganisa ukwenziwa nokungekona komuntu;
- ama-oda, okuhlanganisa nama-stop orders, ohwebo nama-oda atholakala ngaphandle kwekhawunta – imibiko yokuhweba ngamadili okukhokhelana;
- “iphothifoliyo yeklayenti”, “thenga/thengisa”
- idatha evela ezikhundleni zombambi qhaza ngemali, ama-akhawunti okuhweba, ithuluzi.
Amathebula asekelwe ku-QPILE awakwazi ukukopishelwa efayeleni lombhalo ngemenyu yokuqukethwe futhi athunyelwe kumasistimu okuhlaziya obuchwepheshe, futhi amashadi awakwazi ukwakhiwa ngokusekelwe kuwo. Amathebula asekelwe ku-QPILE awakwazi ukuhlungwa noma ahlungwe.
Ukusebenza ngetafula
Ukuze ulayishe ikhodi yohlelo, udinga ukukhetha imenyu yamasevisi, bese kuba izikripthi ze-QPILE. Ungasebenzisa futhi inhlanganisela Ctrl+F11. Ngemuva kokuthi udinga ukuchofoza “Engeza” bese ukhetha ifayela olifunayo. Inesandiso esithi .qpl futhi igama layo lizovela ohlwini Lwezikripthi Ezitholakalayo.
Uma kunephutha ohlelweni, uhlelo luzokwenza isaziso “Efasiteleni Lomlayezo”, elizoqukatha igama lefayela elinesici kanye nenombolo yomugqa enephutha. Uma kungekho ukwehluleka okutholakele kufayela, idatha elandelayo izoboniswa ezinkambu:
- igama lethebula;
- inani lamakholomu namakhasimende;
- uhlu lwezihlonzi namakhasimende;
- uhlu lwamapharamitha kanye nekhodi yomthombo yefayela.
Inkinobho ethi “Landa endaweni” izokuvumela ukuthi uthole ithebula efayelini, futhi “Layisha kuseva” izothumela uhlelo kuseva ukuze bonke abasebenzisi bakwazi ukufinyelela kuyo. Ukuze udale ithebula, chofoza okuthi Dala Ithebula. Ku-“Izikripthi ezitholakalayo” khetha uhlelo okudingeka ulusebenzise, setha inombolo yemigqa ngokusebenzisa “Isihlungi samaklayenti”, thola amakholomu adingekayo nokulandelana kwawo.
Ukumisa isikhashana nokuqalisa kabusha ukubala, ukuqala ukubala futhi futhi kumodi yokususa iphutha, ukulondoloza incazelo efayeleni, ukukhombisa ifomula, namapharamitha wombhalo ayatholakala kumenyu yokuqukethwe.
I-QPILE iyakha
Izinhlobo zedatha
- Intambo – intambo.
- Okukabili kuyinombolo yephoyinti elintantayo.
- Iqoqo – iqoqo.
- Imephu – i-associative array – ukulandelana kwamapheya akuvumela ukuthi uthole ulwazi ngokhiye.
Izinkulumo
Imisebenzi ye-arithmetic yokuhlanganisa, ukususa, ukuphindaphinda, ukuhlukanisa isetshenziswa. Izinkulumo ezinengqondo “kanye”, “noma”, zilingana, ngaphezulu, okuncane, ukungalingani, ukwakhiwa okunemibandela “uma … bese …” nazo ziyasetshenziswa.
Imisebenzi
Imisebenzi ingatholakala noma kuphi ohlelweni futhi inamagama ahlukene. Sekukonke, amaqembu ayi-18 emisebenzi yezibalo nemisebenzi ayatholakala ukuze athole amanani amathebula nemingcele, ama-associative arrays, uhlu lwamathebula, neminye imisebenzi. Ibanga lokuqala:
- Imisebenzi yezibalo ekuvumela ukuthi ubuyisele inani le-sine, i-cosine, i-tangent, i-cotangent ye-agumenti, ubale i-eksponenti ye-agumenti, ukhiqize inombolo engahleliwe, njll.
- Imiyalo evamile : NEW_GLOBAL ukuqalisa okuguquguqukayo komhlaba wonke kanye noMESSAGE ukuze uvule imilayezo.
Imisebenzi ongasebenza nayo:
- Ukuqoqwa kwezinto (Iqoqo) . Zikuvumela ukuthi udale iqoqo elisha, ubuyisele inombolo edingekayo yezakhi, ubeke esikhundleni noma ufake amanani oyifunayo.
- I-Associative Arrays (MAP) . Siza ukudala nokuphatha amalungu afanayo.
- Amafayela – ukusebenza ngamafayela ombhalo, ukugcina i-log-log yohlelo. Igama lefayela lingase liqukathe indlela eya kulo.
- Izintambo .
- Amagrafu . Isebenza GET_CANDLE ukuze ufinyelele idatha yekhandlela kanye ne-GET_CANDLE EX ukuze ubuyisele amalungu afanayo.
- Izicelo . Ukudala ama-oda futhi uwathumele ohlelweni lokuhweba.
- Omaka . Ukwakhiwa nokufakwa kwabo eshadini. Ukwengeza, ukususa ilebula eyodwa noma wonke, ukuthola nokusetha imingcele yelebula ethile.
Kukhona futhi imisebenzi ye:
- Ukuze uthole imigqa yamathebula e-QUIK angenasizathu nohlu lwamapharamitha atholakalayo . Ukufinyelela kudatha yethebula lasemsebenzini. Lokhu kufaka phakathi i-GET_ITEM yokubuyisela i-MAP kanye ne-GET_NUMBER_OF ukuze ubuyisele inombolo yokufakiwe.
- Ukuze usebenze ngetafula elihlelekayo . Le miyalo isebenza etafuleni elithi OWN. Ifundeka ngemisebenzi ejwayelekile evela endimeni edlule nangale misebenzi. Leli qembu lihlanganisa imiyalo yokwengeza, ukulungisa kanye nokususa umugqa ngenkomba, nokusula ngokuphelele ithebula elithi OWN.
Ukuze uthole amanani sebenzisa:
- Amathebula okuhweba kwamanje . Ukuthola imininingwane yokushintshisana usebenzisa imiyalo ye-GET_PARAM (_EX).
- Caphula amawindi . Ukuthola amanani wezingcaphuno zensimbi.
- Amathebula ezikhundla ngamathuluzi nemali . Ukuthola idatha yeklayenti, ifemu, ithuluzi, i-akhawunti yedepo ngekhodi.
Imisebenzi yesevisi – ukubuyisela usuku lweseshini yamanje yokuhweba, uchungechunge lwe-associative, idethi yamanje nesikhathi, ukunquma isimo sokuxhuma, ukuphazamisa imodi yokubala.
Izinhlelo zokususa iphutha
Ukulawula isinyathelo ngesinyathelo ekusebenzeni kohlelo kwenziwa efasiteleni elithi “Debug”. Ivulwa kumenyu yokuqukethwe “Qala ukubala kumodi yokususa iphutha”. Ingavulwa futhi ngomyalo we-breakpoint(), futhi umugqa wohlelo uzogqanyiswa ngokubomvu. Iwindi liqukethe izinkambu ezinekhodi yohlelo namanani aguquguqukayo. Phansi kwewindi kukhona izinkinobho “Isinyathelo esilandelayo”, “Qhubeka nokwenza”, “Yeka ukubala”. Ukucindezela okuthi F5 kuzoqhubeka nokwenziwa kohlelo, inhlanganisela Shift + F5 izoyeka ukulungisa iphutha, ukhiye we-F10 uzoqondisa kulayini olandelayo.
I-QPILE noma i-LUA?
I-LUA iwulimi olusha lokuhlela lokudala amarobhothi okuhweba. Njenge-QPILE, isetshenziswa kutheminali ye-QUIK. https://articles.opexflow.com/programming/lua.htm Isayithi elizinikele ekuthuthukiseni amarobhothi okuhweba ukuze ahwebe libonisa izinzuzo zolimi lwe-LUA ngaphezu kwe-QPILE. Ngakho-ke, ingasebenza njengeskripthi esingahlanganisiwe ne-bytecode, efakwe amathuluzi kanjiniyela kanye nezindlela zokuhlela ezigxile entweni. Izinto ezibhalwe ngezinye izilimi zokuhlela zingaxhunywa ezinhlelweni ze-LUA. I-LUA ihlinzeka ngezinhlobo zedatha eziyi-8, okuhlanganisa nama-metatable. Ulimi lwe-LUA lunemicu eminingi, luyashesha, futhi okwenziwayo kanye nemicimbi yetheminali kuyahambisana. I-LUA ivame kakhulu kune-QPILE, futhi izandiso eziningi zibhalelwe yona.
Ulimi lwe-QPILE manje seluhoxisiwe. Ochwepheshe ezinkundleni batusa ukusebenzisa i-LUA. Nakuba izinhlelo eziwusizo nezisebenzayo zisasetshenziswa.
Nokho, ulimi lwe-QPILE lulula uma luqhathaniswa ne-LUA, ngakho-ke uma ungenalo ulwazi lwezinhlelo, kungcono ukhethe i-QPILE. Ngalolu limi, ungabhala irobhothi elilula uma ungadingi ukwenza izibalo eziyinkimbinkimbi.
Ungawakha kanjani irobhothi lokuhweba ku-QPILE?
Ukwakha umeluleki wokuhweba, uzodinga izinhlelo ezilandelayo:
- I-Quik YAYO.
- Umhleli wekhodi ye-Notepad++.
- Umhlahlandlela we-QPILE.
- I-plugin ye-XML yokuthola ikhodi ku-Notepad++.
Landa futhi ufake lezi zinhlelo. Nika amandla i-syntax yolimi ngokubeka umsebenzisiDefineLang.xml endleleni ethi C:\Users\User\AppData\Roaming\Notepad++\
Okokuqala, ake sakhe isu elilandelayo lokuhweba. Umbhalo kufanele ubale okuthi Hi nokuthi Phansi kumakhandlela ambalwa wokugcina njalo ngeminithi, hlola inani lamanje lethuluzi. Isikhundla sivulwa ngendlela edingekayo uma intengo yethuluzi ifinyelela inani eliphakeme noma eliphansi lenkathi. Uma isignali emfishane yamukelwe, indawo ende ivaleka ngokuzenzakalelayo. Irobhothi lisebenzisa ithuluzi le-GAZP, isikhathi sisethelwe kuminithi elingu-1. Ukujula kokulinganisa okuphansi kusethelwe kumakhandlela angu-5. Ukufaka i-Long, umthetho uyasethwa kanye nokuphambana kwentengo yamanje yenani eliphezulu lenkathi. Irobhothi lizongena kafushane uma inani lamanje leqa inani eliphansi lalawa makhandlela angu-5. Bhala ibhulokhi yekhodi ku-Notepad++ enezilungiselelo eziyisisekelo kanye nosuku lweseva nesikhathi. Le khodi iboniswa esithombeni esingezansi.
Imigqa yokuqala emi-4 yekhodi yakha unhlokweni wohlelo. Phakathi komugqa 6 no-44 umzimba wohlelo, oqukethe okuqukethwe irobhothi. Ulayini 7 – 12 uqukethe izilungiselelo zomsebenzisi, ezihlanganisa amakhodi ethuluzi, iqembu kanye neklayenti, inombolo ye-akhawunti eku-MICEX. Lawa manani awashintshi ngesikhathi sokwenziwa kohlelo. Ulayini 13 – 16 ungamanani okuqala okuguquguqukayo. Azosethwa kabusha abe uziro kuphasi ngayinye yokuphindaphinda. Ulayini 17 – 21 uqukethe inkomba yokusebenzisa idethi yeseva nesikhathi. Le datha idluliselwa kumsebenzi we-DATETIME futhi iguqulelwe kufomethi yombhalo. Ulayini 22 – 29 uthumela idatha etholiwe etafuleni. Ikhodi kufanele ilondolozwe futhi isandiso se-qpl kufanele sicaciswe.
Vula uhlelo ku-QUIK ngokucindezela u-Ctrl+F10 nokukhetha ifayela le-qpl elakhiwe. Sebenzisa inhlanganisela ka-Ctrl+F11 ukuze uvule iwindi elithi “Work with Portfolios” bese usetha isikhathi sokubala sephothifoliyo sibe imizuzu emi-5. Cindezela u-Ctrl+F12 ukuze usethe amakholomu azoboniswa kuthebula. Isithombe sibonisa umphumela womsebenzi werobhothi.
Ake sengeze eminye imisebenzi nezimo ezimbalwa ohlelweni lwethu.
Ibhulokhi ethi “Izilungiselelo Zomsebenzisi” yengezwe ngeziguquko ezingu-NUMBER kanye ne-INTERVAL, ezizosetshenziswa emsebenzini wokuthola amabha okugcina angu-N. Umsebenzi othi DATETIME usetha idethi nesikhathi seseva, futhi idethi nesikhathi samanje imisebenzi CURDATE kanye CURTIME kubizwa ngakho. Isikhathi samanje siguqulelwa enombolweni ekulayini wama-24. Umugqa wama-26 ubeka isikhathi sokuthi i-algorithm iqale ngo-10:00:01 ukuya ku-18:40:00 UTC.
Ngokuvamile, izinkomba, ama-oscillator, izibalo zezibalo zibalwa ngamakhandlela angu-N wokugcina eshadi. I-QPILE ayinawo umsebenzi wokuqoqa inani lamakhandlela ezikhathini ezingu-N ezedlule, kodwa kunomsebenzi we-GET_CANDLE ofinyelela amakhandlela eshadini ngedethi nesikhathi ngefomethi yombhalo. Ikhodi yethu iqukethe umsebenzi wokuthola amabha okugcina angu-N OHLC(). Idala iqoqo elinamapharamitha wamakhandlela okugcina abekwe kuhlu lwe-COLLECTION. Uhlelo luhlola inani elithi INTERVAL, futhi uma lingaweli phakathi kwebanga elingu-0…60, umlayezo uyaboniswa wokuthi inani alihambisani nobubanzi obuvunyelwe. Iqoqo le-MAP elinamakhandlela lakhiwa emgqeni 88. A FOR loop ivotela ishadi ekujuleni okudingekile ngesinyathelo esingu-INTERVAL ukusuka kwelisha ukuya ekhandlelani elidala. Emgqeni wama-90, ngemva kokumenyezelwa komjikelezo, irobhothi libuyela emuva isikhawu. Uma uthola ikhandlela eline-GET_CANDLE, ibeke eqoqweni le-BARLIST usebenzisa umsebenzi we-INSERT_COLLECTION_TEAM. Njengomphumela wokusebenza komyalo we-OHLC(), i-BARLIST igcwaliswa ngamakhandlela okugcina asuka eshadini lezinsimbi ngenani elingu-NUMBER. Inani lezinto eqoqweni licelwe umyalo GET_COLLECTION_COUNT() futhi libikwe okuhlukile okungu-BARCOUNT. Idethi yeseva, isikhathi, amanani we-INSTRUMENT kanye ne-BARCOUNT eguquguqukayo abikwa ngomsebenzi we-SET_VALUE() kokuthi OUTPUT. Lawa malungu afanayo adalwe ngomyalo we-CREATE_MAP(). Idatha iwela kuthebula langokwezifiso, elingabonakala esithombeni esingezansi. amanani we-INSTRUMENT kanye ne-BARCOUNT eguquguqukayo abikwa ngomsebenzi we-SET_VALUE() kokuthi OUTPUT. Lawa malungu afanayo adalwe ngomyalo we-CREATE_MAP(). Idatha iwela kuthebula langokwezifiso, elingabonakala esithombeni esingezansi. amanani we-INSTRUMENT kanye ne-BARCOUNT eguquguqukayo abikwa ngomsebenzi we-SET_VALUE() kokuthi OUTPUT. Lawa malungu afanayo adalwe ngomyalo we-CREATE_MAP(). Idatha iwela kuthebula langokwezifiso, elingabonakala esithombeni esingezansi.
Ukuhweba amarobhothi ku-QPILE – izixazululo ezenziwe ngomumo
Irobhothi elimaphakathi elihambayo
Irobhothi ledemo alifanele ukuhweba kwangempela.
Irobhothi lihlanganisa amapharamitha angu-5. IDETHI, TIME, PRICE amanani esihlonzi asethelwe kuleveli 30. Izihlonzi ezihambayo neze-TP zisethelwe kokunemba okuyiziro. Ikhodi yerobhothi emaphakathini ahambayo ibhalwe ngaphansi kwe-QPILE: [igalari yamakholomu=”5″ ids=”14896,14897,14898,14899,14900,14901,14902,14903,14904,14905,14906,14907″
N. Moroshkin wokubala isikhundla
Uhlelo lokubala amaleveli okunciphisa okuphezulu okuvunyelwe kanye nethagethi yezikhundla ezinde nezifushane ngezintengo zamanje zokucela nebhidi. Amaleveli abalwa amanani angu-2 wevolumu yokufaka isikhundla. Irobhothi lithola ivolumu yendawo evumelekile lapho linikeza i-oda lokumisa ngesinyathelo esisodwa ukusuka enanini lokuvula ngesibalo sokuvula indawo ekuqondeni kokukhula kwebha. Amaleveli atholiwe afakwa efasiteleni letheminali, eliboniswa kamuva eshadini lentengo. Okwenziwayo kulungisiwe kwethuluzi elinikeziwe. Uma indawo ivuliwe, irobhothi liqala ukubala amapharamitha alo. Kuye ngokushintsha kwesimo, imiyalo eyabelwe iyalungiswa.
Isihlungi sevolumu
Irobhothi lephothifoliyo yokubala incazelo ye-arithmetic yevolumu yamakhandlela nokuyiqhathanisa nesilinganiso somkhiqizo nge-coefficient X. Isebenza kahle ngamashadi ahleliwe ngesikhathi esikhethiwe.
Izinketho zamaGreki
Iphothifoliyo yokubala nokubonisa “amaGreki” okukhethwa kukho. Ihlukile endleleni ye-Black-Showers.
Irobhothi lokuhweba le-TRIX le-QUIK
Uhlelo lusekelwe ku-TRIX Indicator. Lapho inkomba ivala ngaphezu komugqa we-zero, izinga elicacisiwe, i-robot ithatha isikhundla eside. Indawo ivalwe yi-Take Profit, Stop Loss noma isitobhi esilandelanayo.
Iprosesa ye-M4
Uhlelo lokusebenza ne-QPILE ne-Lua. Kufaka phakathi izingobo zomlando ezinamafayela asebenzisekayo, imibhalo namafayela e-DLL anokwahlukanisa okuvamile. Ukuze usebenzise uhlelo, udinga ukukhipha amafayela asebenzisekayo futhi ubeke i-regexp2 ku-C:\Windows indlela. Izifundo nge-QPILE ye-QUIK: https://youtu.be/vMTXwDUujpI Ukufaka umbhalo ku-QPILE kutheminali ye-Quik: https://youtu.be/0B7qL8Svh7I Isigaba ku-github esichaza ukusetshenziswa kolimi lwe-algorithmic ye-QPILE eyakhelwe ngaphakathi Indawo yokusebenza yesistimu ye-QUIK etholakala kusixhumanisi – https://euvgub.github.io/quik_user_manual/ch8.html. I-QPILE iwulimi oluphelelwe yisikhathi, kodwa lulula futhi lufinyeleleka nakubathengisi abasaqalayo. Amarobhothi okuhweba nezinhlelo eziye zazibonakalisa isikhathi eside ziyaqhubeka nokusebenza kukho. Kodwa-ke, emisebenzini eyinkimbinkimbi kungcono ukusebenzisa i-LUA.
0к