Yaren Algorithmic QPILE don tsara robobin ciniki don QUIK.
Ana iya rubuta mutum- mutumi na kasuwanci a cikin takamaiman harshe, kama da lambar shirin. QPILE yana ɗaya daga cikinsu, labarin zai yi la’akari da wannan harshe, kwatanta harsunan QPILE da
LUA , kuma ya ba da misalai na robots a cikin wannan harshe.
- Gabaɗaya bayani game da QPILE
- Aiki tare da tebur
- QPILE yana ginawa
- Nau’in bayanai
- Kalamai
- Ayyuka
- Shirye-shiryen gyara kurakurai
- QPILE ko LUA?
- Yadda ake ƙirƙirar mutum-mutumin ciniki akan QPILE?
- Ciniki mutum-mutumi akan QPILE – shirye-shiryen mafita
- Matsakaicin mutum-mutumi
- N. Moroshkin matsayi kalkuleta
- Tace girma
- Zaɓuɓɓuka Girkawa
- Robot ciniki na TRIX don QUIK
- M4 Preprocessor
Gabaɗaya bayani game da QPILE
QPILE taƙaitaccen bayani ne wanda ke tsaye ga QUIK Interface da Logic Environment.
Wannan jerin umarni ne da cibiyar aikin QUIK ta fassara. Ana amfani da shi musamman don ƙididdige farashin kayan aikin tsaro. Hakanan ana amfani da harshen don:
- sake ƙididdige ƙididdiga mai ƙarfi na farashin kadarorin abokan ciniki a kan tebur ɗin dillali da a cikin fayil ɗin su. A cikin yanayin na ƙarshe, ana sake ƙididdige jimillar farashin su;
- gano alamomin da suka ɓace ta amfani da nasu algorithms da bayanai don ba da lamuni na gefe;
- haɓaka dabarun ciniki daidai.
Harshen ya bayyana tsarin tebur: alƙawari na ginshiƙai da layuka, ƙididdiga. A ƙarshe, ana iya amfani da ayyukan lissafi, masu canji, bayanai daga wasu tebur don ƙididdigewa. Lambar shirin da aka ɗora daga uwar garken QUIK ko daga faifan mai amfani ana sarrafa shi ta hanyar fassarar harshe, wanda ke ƙididdige ƙididdiga a cikin ƙididdiga. Teburan shirye-shiryen ɗaya suna da tushen bayanai guda ɗaya, amma lissafin ba a kwafin su ba kuma baya shafar ingancin tsarin. Lokacin aiki tare da tebur na QUIK, tebur akan QPILE suna da daidaitattun ayyuka. QUIK a wurin aiki an sanye shi da mai gyara lambar QPILE. https://articles.opexflow.com/software-trading/torgovyj-terminal-quik.htm Harshen yana ba ku damar kwatanta sabon tebur tare da tsarin da aka ba da, haskaka sel tare da wasu dabi’u, ƙididdige filayen dangane da mathematics da maganganun ma’ana. Mai amfani zai karɓi sanarwa ta hanyar siginar sauti ko saƙon rubutu. Ana iya shirya Tables akan QPILE, buga, kwafi, fitarwa ta ODBC da uwar garken DDE. Bayanan farko sun fito ne daga allunan QUIK:
- ma’amaloli, ciki har da na kisa da na rashin mutum;
- umarni, gami da oda tasha, don cinikin kan-da-counter da oda – rahotannin ciniki a cikin yarjejeniyar sulhu;
- “fayil ɗin abokin ciniki”, “saya/sayar”
- bayanai daga matsayi na mahalarta ta hanyar kuɗi, asusun kasuwanci, kayan aiki.
Ba za a iya kwafin Tables bisa QPILE zuwa fayil ɗin rubutu ta hanyar menu na mahallin ba kuma a fitar da shi zuwa tsarin bincike na fasaha, kuma ba za a iya haɓaka taswira ba bisa su. Ba za a iya tace ko a daidaita tebur na tushen QPILE ba.
Aiki tare da tebur
Don loda lambar shirin, kuna buƙatar zaɓar menu na sabis, sannan rubutun QPILE. Hakanan zaka iya amfani da haɗin haɗin Ctrl + F11. Bayan kana buƙatar danna “Add” kuma zaɓi fayil ɗin da ake so. Yana da tsawo na .qpl kuma sunansa zai bayyana a cikin Jerin Rubutun da ake da su.
Idan akwai kuskure a cikin shirin, tsarin zai yi sanarwa a cikin “Window Saƙo”, wanda zai ƙunshi sunan fayil ɗin da ba daidai ba da lambar layi tare da kuskuren. Idan ba a sami gazawa a cikin fayil ɗin ba, za a nuna bayanan masu zuwa a cikin filayen:
- sunan tebur;
- adadin ginshiƙai da abokan ciniki;
- jerin masu ganowa da abokan ciniki;
- jerin sigogi da lambar tushe na fayil ɗin.
Maballin “Download locally” zai ba ka damar samun tebur daga fayil, kuma “Upload zuwa uwar garken” zai aika da shirin zuwa uwar garken ta yadda duk masu amfani za su iya samun damar yin amfani da shi. Don ƙirƙirar tebur, danna Ƙirƙiri Tebur. A cikin “Rubutun da ake samuwa” zaɓi shirin da kuke buƙatar aiwatarwa, saita adadin layin ta hanyar “Filter of clients”, ƙayyade ginshiƙan da ake buƙata da jerin su.
Tsayawa da ci gaba da lissafin, sake farawa lissafin kuma a cikin yanayin lalata, adana bayanin zuwa fayil, nuna dabara, da sigogin rubutun suna cikin menu na mahallin.
QPILE yana ginawa
Nau’in bayanai
- Kirtani – kirtani.
- Biyu lamba ce mai iyo.
- Tarin – tarin.
- Taswira – tsararrun haɗin gwiwa – jerin nau’i-nau’i waɗanda ke ba ku damar samun bayanai ta maɓalli.
Kalamai
Ana amfani da ayyukan lissafi na ƙari, ragi, ninkawa, rarrabawa. Hakanan ana amfani da maganganun ma’ana “da”, “ko”, daidai, ƙari, ƙasa, rashin daidaituwa, ginin yanayin “idan … to…”.
Ayyuka
Ana iya samun ayyuka a ko’ina a cikin shirin kuma suna da sunaye daban-daban. A cikin duka, ƙungiyoyi 18 na ayyuka da ayyuka na lissafi suna samuwa don samun ƙimar tebur da sigogi, tsararrun haɗin gwiwa, jerin tebur, da sauran ayyuka. Darasi na farko:
- Ayyukan lissafin da ke ba ka damar dawo da ƙimar sine, cosine, tangent, cotangent na gardama, ƙididdige ma’anar hujja, samar da lambar bazuwar, da dai sauransu.
- Gabaɗaya umarni : NEW_GLOBAL don fara canza canjin duniya da MESSAGE don buɗe saƙonni.
Ayyuka don aiki tare da:
- Tarin abubuwa (Tarin) . Suna ba ku damar ƙirƙirar sabon tarin, dawo da adadin abubuwan da ake buƙata, maye gurbin ko saka ƙimar da ake so.
- Ƙungiyoyin Ƙungiya (MAP) . Taimako don ƙirƙira da sarrafa tsararru.
- Fayiloli – aiki tare da fayilolin rubutu, kiyaye log-log na shirin. Sunan fayil na iya ƙunshi hanyar zuwa gare shi.
- igiyoyi .
- Hotuna . Ayyuka GET_CANDLE don samun damar bayanan kyandir da GET_CANDLE EX don dawo da tsarin haɗin gwiwa.
- Aikace-aikace . Ƙirƙirar umarni da aika su zuwa tsarin ciniki.
- Tags . Gina su da shigarwa akan ginshiƙi. Ƙara, share ɗaya ko duk takubba, samu da saita sigogi don takamaiman lakabin.
Hakanan akwai ayyuka don:
- Don samun dama ga layuka na tebur na QUIK na sabani da jerin abubuwan da ke akwai . Samun dama ga bayanan tebur na wurin aiki. Waɗannan sun haɗa da GET_ITEM don dawo da MAP da GET_NUMBER_OF don dawo da adadin abubuwan shigarwa.
- Don aiki tare da tebur mai shirye-shirye . Waɗannan umarnin suna aiki akan teburin OWN. Ana iya karanta shi ta daidaitattun ayyuka daga sakin layi na baya da kuma ta waɗannan ayyuka. Wannan rukunin ya haɗa da umarni don ƙara, gyarawa da share jere tare da fihirisa, da share teburin OWN gaba ɗaya.
Don samun ƙimar amfani:
- Tables na cinikai na yanzu . Samun sigogin musayar bayanai ta amfani da umarnin GET_PARAM (_EX).
- Quote windows . Samun ƙimar ƙimar kayan aiki.
- Tables na matsayi ta kayan aiki da kudi . Samun bayanai akan abokin ciniki, kamfani, kayan aiki, asusun ajiya ta lamba.
Ayyukan sabis – dawo da kwanan wata na zaman ciniki na yanzu, jerin haɗin gwiwa, kwanan wata da lokaci na yanzu, ƙayyade yanayin haɗin gwiwa, katse yanayin lissafi.
Shirye-shiryen gyara kurakurai
Ikon mataki-mataki akan aikin shirin ana aiwatar da shi a cikin taga “Debug”. Ana buɗe shi daga mahallin mahallin “Fara lissafi a yanayin lalata”. Hakanan za’a iya buɗe shi tare da umarnin breakpoint(), kuma layin shirin za a haskaka shi da ja. Tagar tana ƙunshe da filaye masu lambar shirin da ƙima masu ma’ana. A ƙasan taga akwai maɓallan “Mataki na gaba”, “Ci gaba da aiwatarwa”, “Dakatar da lissafi”. Danna F5 zai ci gaba da aiwatar da shirin, haɗin Shift + F5 zai dakatar da gyarawa, maɓallin F10 zai kai tsaye zuwa layi na gaba.
QPILE ko LUA?
LUA sabon yaren shirye-shirye ne don ƙirƙirar mutummutumi na kasuwanci. Kamar QPILE, ana aiwatar da shi a cikin tashar QUIK. https://articles.opexflow.com/programming/lua.htm Shafin da aka sadaukar don haɓaka robots na kasuwanci don ciniki yana nuna fa’idodin yaren LUA akan QPILE. Don haka, yana iya aiki azaman rubutun da ba a haɗa shi da bytecode ba, sanye take da kayan aikin haɓakawa da hanyoyin tsara abubuwa masu dacewa. Abubuwan da aka rubuta a cikin wasu yarukan shirye-shirye ana iya haɗa su zuwa shirye-shiryen LUA. LUA tana ba da nau’ikan bayanai guda 8, gami da metatables. Harshen LUA yana da zaren da yawa, mai sauri, kuma ma’amaloli da abubuwan da suka faru na ƙarshe ba su daidaita ba. LUA ya fi kowa yawa fiye da QPILE, kuma an rubuta kari da yawa don shi.
Harshen QPILE yanzu ya ƙare. Masana a kan forums bayar da shawarar yin amfani da LUA. Ko da yake har yanzu ana amfani da shirye-shirye masu amfani da inganci.
Koyaya, yaren QPILE yana da sauƙi idan aka kwatanta da LUA, don haka idan ba ku da gogewa a cikin shirye-shirye, yana da kyau a zaɓi QPILE. A cikin wannan yaren, zaku iya rubuta mutum-mutumi mai sauƙi idan ba ku buƙatar yin ƙididdiga masu rikitarwa.
Yadda ake ƙirƙirar mutum-mutumin ciniki akan QPILE?
Don ƙirƙirar mai ba da shawara na kasuwanci, kuna buƙatar shirye-shirye masu zuwa:
- ITS Quik.
- Editan lambar Notepad++.
- Jagora zuwa QPILE.
- XML plugin don gano lambar a cikin Notepad++.
Zazzage kuma shigar da waɗannan shirye-shiryen. Kunna tsarin haɗin harshe ta hanyar sanya mai amfaniDefineLang.xml a cikin hanyar C:\Users User AppDataRoaming Notepad++
Da farko, bari mu ƙirƙiri dabarun ciniki masu zuwa. Rubutun ya kamata ya lissafta Hi da Low don ‘yan kyandirori na ƙarshe kowane minti, duba farashin kayan aiki na yanzu. An buɗe matsayi a cikin hanyar da ake buƙata idan farashin kayan aiki ya kai matsakaicin ko mafi ƙarancin ƙima na lokacin. Lokacin da aka karɓi sigina na gajere, dogon matsayi yana rufe ta atomatik. Robot yana amfani da kayan aikin GAZP, an saita tsarin lokaci zuwa 1 min. An saita zurfin ma’aunin hi-low zuwa kyandirori 5. Don shigar da Doguwa, an saita ƙa’ida da tsaka-tsakin farashin yanzu na matsakaicin ƙimar lokacin. Robot din zai shiga Short idan farashin yanzu ya ketare mafi ƙarancin ƙimar waɗannan kyandirori 5. Rubuta toshe na lamba a cikin Notepad++ tare da saitunan asali da kwanan wata da lokacin sabar. Ana nuna wannan lambar a hoton da ke ƙasa.
Layukan lamba 4 na farko sun samar da taken shirin. Tsakanin layi na 6 da 44 shine jikin shirin, wanda ke dauke da abubuwan da ke cikin na’urar. Layuka 7 – 12 sun ƙunshi saitunan mai amfani, waɗanda suka haɗa da lambobin kayan aiki, rukuni da abokin ciniki, lambar asusun akan MICEX. Waɗannan ƙimar ba sa canzawa yayin aiwatar da shirin. Lines 13 – 16 sune ma’auni na farko na masu canji. Za a sake saita su zuwa sifili akan kowane fasfo na maimaitawa. Layukan 17-21 sun ƙunshi nuni don amfani da kwanan wata da lokacin sabar. An wuce wannan bayanan zuwa aikin DATETIME kuma an canza shi zuwa tsarin rubutu. Layukan 22 – 29 suna aika bayanan da aka karɓa zuwa teburin. Dole ne a adana lambar kuma dole ne a ƙayyade tsawo na qpl.
Bude shirin a cikin QUIK ta latsa Ctrl+F10 kuma zaɓi fayil ɗin qpl da aka samar. Yi amfani da haɗin Ctrl+F11 don buɗe taga “Aiki tare da Fayiloli” kuma saita lokacin lissafin fayil zuwa mintuna 5. Latsa Ctrl+F12 don saita ginshiƙan don nunawa a cikin tebur. Hoton yana nuna sakamakon aikin mutum-mutumin.
Bari mu ƙara wasu ƴan ayyuka da sharuɗɗa a shirin mu.
An ƙara toshe “User settings” tare da NUMBER da INTERVAL variables, waɗanda za a yi amfani da su a aikin samun sandunan N na ƙarshe. Aikin DATETIME yana saita kwanan wata da lokacin uwar garken, kuma ana kiran aikin kwanan wata da lokaci na yanzu CURDATE da CURTIME daga gare ta. An canza lokacin yanzu zuwa lamba akan layi 24. Layin 26 yana saita lokacin algorithm don gudana daga 10:00:01 zuwa 18:40:00 UTC.
Mafi sau da yawa, alamomi, oscillators, ƙididdigar ƙididdiga suna ƙididdige su ta hanyar kyandir na N na ƙarshe na ginshiƙi. QPILE ba shi da aiki don tattara adadin kyandir N da suka wuce haka, amma akwai aikin GET_CANDLE wanda ke shiga cikin kyandir akan ginshiƙi ta kwanan wata da lokaci a tsarin rubutu. Lambar mu ta ƙunshi aikin don samun sandunan N na ƙarshe OHLC(). Yana ƙirƙirar tarin tare da ma’auni na kyandir na ƙarshe da aka saka a cikin jerin KYAUTA. Shirin yana duba ƙimar INTERVAL, kuma idan bai faɗi cikin kewayon 0…60 ba, ana nuna saƙo cewa ƙimar ba ta dace da kewayon da aka yarda ba. An ƙirƙiri tarin MAP tare da kyandir a layi na 88. A FOR madauki zaɓen ginshiƙi zuwa zurfin da ake buƙata tare da matakin INTERVAL daga sabon zuwa tsohuwar kyandir. A cikin layi na 90, bayan an bayyana sake zagayowar, robot ɗin ya koma tazara. Lokacin da kuka sami kyandir tare da GET_CANDLE, sanya shi a cikin tarin BARLIST ta amfani da aikin INSERT_COLLECTION_TEAM. Sakamakon aikin OHLC() umurnin, BARLIST yana cike da kyandirori na ƙarshe daga ginshiƙi na kayan aiki a cikin adadin NUMBER. Ana buƙatar adadin abubuwan da ke cikin tarin ta umarnin GET_COLLECTION_COUNT() kuma mai canjin BARCOUNT ya ruwaito. Kwanan uwar garke, lokaci, ƙimar INSTRUMENT da masu canjin BARCOUNT ana ba da rahoton aikin SET_VALUE() a cikin OUTPUT. An ƙirƙiri wannan tsararru ta umarnin CREATE_MAP(). Bayanan sun fada cikin tebur na al’ada, wanda za’a iya gani a hoton da ke ƙasa. ana bayar da rahoton ƙimar INSTRUMENT da masu canjin BARCOUNT ta aikin SET_VALUE() a cikin OUTPUT. An ƙirƙiri wannan tsararru ta umarnin CREATE_MAP(). Bayanan sun fada cikin tebur na al’ada, wanda za’a iya gani a hoton da ke ƙasa. ana bayar da rahoton ƙimar INSTRUMENT da masu canjin BARCOUNT ta aikin SET_VALUE() a cikin OUTPUT. An ƙirƙiri wannan tsararru ta umarnin CREATE_MAP(). Bayanan sun fada cikin tebur na al’ada, wanda za’a iya gani a hoton da ke ƙasa.
Ciniki mutum-mutumi akan QPILE – shirye-shiryen mafita
Matsakaicin mutum-mutumi
Demo robot bai dace da ciniki na gaske ba.
Mutum-mutumi ya ƙunshi sigogi 5. DATE, LOKACI, PRICE masu gano ƙimar an saita su zuwa matakin 30. MOVING da masu gano TP an saita su zuwa daidaitattun sifili. Lambar Robot akan matsakaiciyar motsi da aka rubuta ƙarƙashin QPILE: [ginshiƙan gallery = “5” ids=”14896,14897,14898,14899,14900,14901,14902,14903,14904,14905,14906,14907″]
N. Moroshkin matsayi kalkuleta
Shiri don ƙididdige matakan matsakaicin ƙima da aka yarda da shi da maƙasudi na dogon lokaci da gajerun matsayi a farashin tambaya da farashi na yanzu. Ana ƙididdige matakan don ƙima 2 na ƙarar shigarwar matsayi. Robot yana samun ƙarar matsayi mai izini lokacin sanya odar tsayawa a mataki ɗaya daga farashin buɗewa tare da lissafin buɗe matsayi a cikin hanyar ci gaban mashaya. An shigar da matakan da aka samo a cikin taga ta ƙarshe, waɗanda daga baya suna nunawa a cikin jadawalin farashin. Ana daidaita ma’amaloli don kayan aikin da aka bayar. Idan an buɗe matsayi, mutum-mutumi ya fara ƙididdige sigoginsa. Dangane da canjin matsayi, ana daidaita umarni da aka sanya.
Tace girma
Robot Portfolio don ƙididdige ma’anar lissafin ƙididdiga na kyandir da kwatanta shi da matsakaicin samfur ta hanyar ma’aunin X. Yana aiki daidai tare da zane-zanen ƙira a cikin lokacin da aka zaɓa.
Zaɓuɓɓuka Girkawa
Fayil ɗin don ƙididdigewa da nuna “Girkawa” na zaɓuɓɓuka. Ya bambanta da hanyar Black-Showers.
Robot ciniki na TRIX don QUIK
Shirin ya dogara ne akan Alamar TRIX. Lokacin da mai nuna alama ya rufe sama da layin sifili, ƙayyadaddun matakin, robot yana ɗaukar Matsayi mai tsayi. Matsayin yana rufe ta Take Riba, Tsaida Asara ko tasha.
M4 Preprocessor
Shirin aiki tare da QPILE da Lua. Ya haɗa da rumbun adana bayanai tare da fayiloli masu aiwatarwa, takaddun bayanai da fayilolin DLL tare da tantance bayanan yau da kullun. Don amfani da shirin, kuna buƙatar buɗe fayilolin da za a iya aiwatarwa kuma sanya regexp2 a cikin hanyar C: \ Windows. Darussan kan QPILE don QUIK: https://youtu.be/vMTXwDUujpI Shigar da rubutu akan QPILE a cikin tashar Quik: https://youtu.be/0B7qL8Svh7I Sashe akan github wanda ke bayyana amfanin QPILE algorithmic harshen da aka gina a cikin Tsarin tsarin QUIK yana kan hanyar haɗin gwiwa – https://euvgub.github.io/quik_user_manual/ch8.html. QPILE yare ne wanda ya tsufa, amma mai sauqi ne kuma mai isa ga novice yan kasuwa. Kasuwancin mutum-mutumi da shirye-shiryen da suka tabbatar da kansu na dogon lokaci suna ci gaba da aiki a kai. Koyaya, don ƙarin hadaddun ayyuka yana da kyau a yi amfani da LUA.
0к