Autorius | Žinutė |
2013-04-16 15:49 #340402 | |
JS geriausias pasirinkimas jei noresi matyt ta daikta per visur is eiles, per smartus, linuxus ir t.t.
O del Silverlight, tai cia .NET pluginas, analogiskas flashui ar Java appletui. Programinas bet kokia .NET kalba, kruvos komponentu, ant studio su designeriu destai ir tiek ziniu. "Ir jei neklystu Silverlight galima ir per JS API kodinti" Panasu i tai. Ten XML formatu viskas apibrezta. [url]http://msdn.microsoft.com/en-us/library/bb979679(v=vs.95).aspx[/url] |
|
2013-04-16 16:17 #340410 | |
Taip būtent C# per "visur" - cross-platform ir cross-browser yra dydžiausias prioritetas. Nežinau kas geriau tam nei JS su HTML. Apssas bus mostly clien-side, tik kotiruotes siųs ir refaktorins server-side. Juolab ECMA labai ištobulėjo kartu su 5 HTML gali pasiekt super rezultatų. + Pridedi SVG generavimą, media-queries ir element-queries , responsive grid, ir εύρηκα.
Pasižvalgysiu apie Silverlight, neteko susidurt praktikoje. ačiū už info. Good insight,- that is all that matters (2012)
And action volume (2024) |
|
2013-04-16 20:53 #340479 | |
illiuminati [2013-04-16 12:21]: Papildyta:{ Nebepamenu kaip tiksliai vadinasi bet pamėginsiu iki vakaro tau rasti viena forumą kuriame renkasi tokia rafinuota "geek'u" auditorija (finansininkai, programeriai, matematikai). Ten manau paviešinęs savo mintys gautum tau reikiamo palaikymo, pagalbos. O jei ne tai bent tikslios kritikos} verkiant reikia sito forumo adreso.dekoju is anksto Jeigu darbas jums nekelia jokiu emociju, jus profesionalas!
|
|
2013-04-16 21:21 #340484 | |
o aš apsiverksiu kol ji rasiu, visa browsing history peržiūrėjau. Netikėtai radau ieškodamas techninės info apie high frequency trading ir kažkodėl neužsibookmarkinau-, pačiam gaila. Nu anyway jei atrasiu vėl - į čia tema ir idėsiu. Dar norėjau parekomenduoti fince http://stackoverflow.com/ ten išdėstęs savo mintys suvokiama logika gali gauti labai gero breef'o.
Beje C# čia turiu tokį ale prototipą padarytą su AXURE, parodomiesiems tikslams. http://dl.dropboxusercontent.com/u/6105320/HTML/Home.html ten daug kas levai veikia tačiau esmę parodo. Bugovas dėšinej pusė esantis side drop downas su finasinę apžvalgą, bet užtektinai paspaudinėjus ant rodyklės atsidaro. Dabartinėj versijoje esu prarplėtęs funkcionalumą tuom ,kad gali susikurti profilį ir turėti savo ale tai portfelį ir nustatymus. Ir dar prie opcijos "Pasirinkite Indikatorių" yra idėtį savo. Kritiką , patarimai, pastabos - labai laukiami Good insight,- that is all that matters (2012)
And action volume (2024) |
|
2013-04-19 17:16 #340914 | |
Gal kas galetu uz pinigus suprogramuoti man viena toki EA? Pats nelabai gaudausi programavime, tai ieskau kas nusimano, darbas nebutu labai sudetingas. Gal atsiras norinciu, del kainos susitartume kai pamatytumete ko noriu is EA.
|
|
2013-04-19 18:55 #340928 1 | |
Galiu imest i pasta kas tai daro. Nezinau ar gerai, bet siulosi daug metu ir pvz maciau.
Jam nusiunciau nuoroda i si puslapi, tai gal tau pats parasys |
|
2013-04-19 19:05 #340929 | |
Zaibaras [2013-04-19 17:16]: Gal kas galetu uz pinigus suprogramuoti man viena toki EA? Pats nelabai gaudausi programavime, tai ieskau kas nusimano, darbas nebutu labai sudetingas. Gal atsiras norinciu, del kainos susitartume kai pamatytumete ko noriu is EA. skaityk PM arba rasyk smiledexter@gmail.com, padarysiu. Redaguota: smiledexter (2013-04-19 19:35 ) Robotu programavimas mql (mt4)
|
|
2013-05-22 23:54 #344902 | |
Sveiki, klausimas- ar yra kokia glimybe, jei taip tai kaip tai galima padaryt, MT4 slenkanti stopa nustatyt mazesni nei 20 punktu? Aciu.
|
|
2013-05-23 07:24 #344904 | |
Jei tokios funkcijos neleidzia MT4, bet brokeris leidzia deti mazesnius TP ar SL negu 20 pip, tai galiu toki stopa tau padaryti.
Robotu programavimas mql (mt4)
|
|
2013-05-23 07:48 #344905 | |
SL ir TP leidzia 5 pip, slenkanti 10 pip butu gerai.
|
|
2013-05-23 07:52 #344906 | |
Dangi, i PM tau parasiau.
Robotu programavimas mql (mt4)
|
|
2014-02-03 14:31 #383609 | |
Sveiki, mokaus ir bandau suprogramuoti viena EA strategijai, gal kas galetu padeti rasti klaida ar klaidas nes dabar jis neveikia ir nezinau kodel, kelios galvos geriau nei viena ;)
Cia pagrindine dalis is EA, kuri turetu vienu metu padaryti tris orderius vienu metu kai gaunasmas signalas, o uzdaryti atskirai, priklausomai nuo TP arSL kiekvienam orderiui, paskutinis orderis uzdaromas tik su SL arba gavus closeorder signala Rasykit i PM arba bent padekit nukreipti mane tinkama kryptim. P.S. cia negraziai isikele programa, iskart atsiprasau. Kodas: //+------------------------------------------------------------------+
//| Signal End | //+------------------------------------------------------------------+ //Buy if (Order == SIGNAL_BUY && ((EachTickMode && !TickCheck) || (!EachTickMode && (Bars != BarCount)))) { if(!IsTrade) { //Check free margin if (AccountFreeMargin() < (1000 * Lots)) { Print("We have no money. Free Margin = ", AccountFreeMargin()); return(0); } if ( AccountFreeMargin() > (1000 * Lots)) { Lot1 = AccountFreeMargin() * RizikosLygis ; Lot2 = AccountFreeMargin() * RizikosLygis; Lot3 = AccountFreeMargin() * RizikosLygis ; } if (UseStopLoss) StopLossLevel = Ask - StopLoss * Point; else StopLossLevel = 0.0; if (UseTakeProfit) TakeProfitLevel1 = Ask + TakeProfit1 * Point; else TakeProfitLevel1 = 0.0; if (UseTakeProfit) TakeProfitLevel2 = Ask + TakeProfit2 * Point; else TakeProfitLevel2 = 0.0; Ticket1 = OrderSend(Symbol(), OP_BUY, Lot1, Ask, Slippage, StopLossLevel, TakeProfitLevel1, "Buy(#" + MagicNumber + ")", MagicNumber, 0, DodgerBlue); if(Ticket > 0) { if (OrderSelect(Ticket1, SELECT_BY_TICKET, MODE_TRADES)) { Print("BUY order opened : ", OrderOpenPrice()); if (SignalMail) SendMail("[Signal Alert]", "[" + Symbol() + "] " + DoubleToStr(Ask, Digits) + " Open Buy"); } else { Print("Error opening BUY order 1 : ", GetLastError()); } } Ticket2 = OrderSend(Symbol(), OP_BUY, Lot2, Ask, Slippage, StopLossLevel, TakeProfitLevel2, "Buy(#" + MagicNumber + ")", MagicNumber, 0, DodgerBlue); if(Ticket > 1) { if (OrderSelect(Ticket2, SELECT_BY_TICKET, MODE_TRADES)) { Print("BUY order opened : ", OrderOpenPrice()); if (SignalMail) SendMail("[Signal Alert]", "[" + Symbol() + "] " + DoubleToStr(Ask, Digits) + " Open Buy"); } else { Print("Error opening BUY order 2 : ", GetLastError()); } } Ticket3 = OrderSend(Symbol(), OP_BUY, Lot3, Ask, Slippage, StopLossLevel, 0, "Buy(#" + MagicNumber + ")", MagicNumber, 0, DodgerBlue); if(Ticket > 2) { if (OrderSelect(Ticket3, SELECT_BY_TICKET, MODE_TRADES)) { Print("BUY order opened : ", OrderOpenPrice()); if (SignalMail) SendMail("[Signal Alert]", "[" + Symbol() + "] " + DoubleToStr(Ask, Digits) + " Open Buy"); } else { Print("Error opening BUY order 3 : ", GetLastError()); } } if (EachTickMode) TickCheck = True; if (!EachTickMode) BarCount = Bars; return(0); } } //Sell if (Order == SIGNAL_SELL && ((EachTickMode && !TickCheck) || (!EachTickMode && (Bars != BarCount)))) { if(!IsTrade) { //Check free margin if (AccountFreeMargin() < (1000 * Lots)) { Print("We have no money. Free Margin = ", AccountFreeMargin()); return(0); } if ( AccountFreeMargin() > (1000 * Lots)) { Lot1 = AccountFreeMargin() * RizikosLygis; Lot2 = AccountFreeMargin() * RizikosLygis ; Lot3 = AccountFreeMargin() * RizikosLygis ; } if (UseStopLoss) StopLossLevel = Bid + StopLoss * Point; else StopLossLevel = 0.0; if (UseTakeProfit) TakeProfitLevel1 = Bid - TakeProfit1 * Point; else TakeProfitLevel1 = 0.0; if (UseTakeProfit) TakeProfitLevel2 = Bid - TakeProfit2 * Point; else TakeProfitLevel2 = 0.0; Ticket1 = OrderSend(Symbol(), OP_SELL, Lot1, Bid, Slippage, StopLossLevel, TakeProfitLevel1, "Sell(#" + MagicNumber + ")", MagicNumber, 0, DeepPink); if(Ticket > 0) { if (OrderSelect(Ticket1, SELECT_BY_TICKET, MODE_TRADES)) { Print("SELL order opened 1: ", OrderOpenPrice()); if (SignalMail) SendMail("[Signal Alert]", "[" + Symbol() + "] " + DoubleToStr(Bid, Digits) + " Open Sell"); } else { Print("Error opening SELL order 1: ", GetLastError()); } } Ticket2 = OrderSend(Symbol(), OP_SELL, Lot2, Bid, Slippage, StopLossLevel, TakeProfitLevel2, "Sell(#" + MagicNumber + ")", MagicNumber, 0, DeepPink); if(Ticket > 1) { if (OrderSelect(Ticket2, SELECT_BY_TICKET, MODE_TRADES)) { Print("SELL order opened 2: ", OrderOpenPrice()); if (SignalMail) SendMail("[Signal Alert]", "[" + Symbol() + "] " + DoubleToStr(Bid, Digits) + " Open Sell"); } else { Print("Error opening SELL order 2 : ", GetLastError()); } } Ticket3 = OrderSend(Symbol(), OP_SELL, Lot3, Bid, Slippage, StopLossLevel, 0, "Sell(#" + MagicNumber + ")", MagicNumber, 0, DeepPink); if(Ticket > 2) { if (OrderSelect(Ticket3, SELECT_BY_TICKET, MODE_TRADES)) { Print("SELL order opened 3: ", OrderOpenPrice()); if (SignalMail) SendMail("[Signal Alert]", "[" + Symbol() + "] " + DoubleToStr(Bid, Digits) + " Open Sell"); } else { Print("Error opening SELL order 3: ", GetLastError()); } } if (EachTickMode) TickCheck = True; if (!EachTickMode) BarCount = Bars; return(0); } } if (!EachTickMode) BarCount = Bars; return(0); } //+------------------------------------------------------------------+ Redaguota: sliux (2014-02-03 14:44 ) |
|
2014-02-03 14:43 #383611 | |
tu parašei kaip turėtų veikti, bet neparašei kas konkrečiai neveikia arba veikia kitaip. taip pat nepamaišytų logai. juose dažnai matosi kodėl robotas ko nors nedaro, ir ar iš vis daro.
vien jau ši dalis daug neiškumų kelia pačioje pradžioje, nes kodas pateiktas nepilnas. Kodas: Lot1 = AccountFreeMargin() * RizikosLygis; Lot2 = AccountFreeMargin() * RizikosLygis ; Lot3 = AccountFreeMargin() * RizikosLygis ; kokio tipo kintamieji Lot ir RizikosLygis? kokia numatytoji reikšmė RizikosLygis ir kokios reikšmės gali būt naudojamos? Myliu pinigus
Yra dviejų rūšių rinkos analitikai: vieni nežino kas bus, kiti nežino, kad jie nežino kas bus. |
|
2014-02-03 15:57 #383628 | |
sveikas Pilote, esme sito EA kad gavus signala long ar short turi atidaryti 3 orderius, pirmi du su TP, paskutinis laukia OrderClose_Signal ir tada uzsidaro, SL pas visus vienodas.
Rizikos lygis tai procentine israiska Freemargino uz kura bus daromi tie orderiaisu tam tikru rizikos lygiu, as ten nepabaigiau ir neidejau kokiu santykiu tie orderiai ta suma dalinsis tarpusavy, tad prie tos lygties turetu buti koficientai kuriu suma 1. Cia visas kodas. Kodas: #define SIGNAL_NONE 0
#define SIGNAL_BUY 1 #define SIGNAL_SELL 2 #define SIGNAL_CLOSEBUY 3 #define SIGNAL_CLOSESELL 4 extern int MagicNumber = 0; extern bool SignalMail = False; extern bool EachTickMode = False; extern int Slippage = 3; extern bool UseStopLoss = True; extern int StopLoss = 200; extern bool UseTakeProfit = False; extern int TakeProfit1 = 10; extern int TakeProfit2 = 20; extern bool UseTrailingStop = True; extern int TrailingStop = 10; extern double RizikosLygis = 0.1; int BarCount; int Current; bool TickCheck = False; //+------------------------------------------------------------------+ //| expert initialization function | //+------------------------------------------------------------------+ int init() { BarCount = Bars; if (EachTickMode) Current = 0; else Current = 1; return(0); } //+------------------------------------------------------------------+ //| expert deinitialization function | //+------------------------------------------------------------------+ int deinit() { return(0); } //+------------------------------------------------------------------+ //| expert start function | //+------------------------------------------------------------------+ int start() { int Order = SIGNAL_NONE; int Total, Ticket, Ticket1, Ticket2, Ticket3; double StopLossLevel, TakeProfitLevel1, TakeProfitLevel2, Lots, Lot1, Lot2, Lot3; if (EachTickMode && Bars != BarCount) TickCheck = False; Total = OrdersTotal(); Order = SIGNAL_NONE; //+------------------------------------------------------------------+ //| Variable Begin | //+------------------------------------------------------------------+ double Buy1_1 = iClose(NULL, 0, Current + 0); double Buy1_2 = iClose(NULL, 0, Current + 1); double Sell1_1 = iClose(NULL, 0, Current + 0); double Sell1_2 = iClose(NULL, 0, Current + 1); double TDI_Red1_1 = iCustom(4,0,"TDI_RT",0,Current + 0); double TDI_Red1_2 = iCustom(4,0,"TDI_RT",0,Current + 1); double TDI_Green1_1 = iCustom(5,0,"TDI_RT",0,Current + 0); double TDI_Green1_2 = iCustom(5,0,"TDI_RT",0,Current + 1); double EMA1 = iMA(NULL,0,6,0,MODE_SMA,PRICE_CLOSE,Current + 0); double EMA2 = iMA(NULL,0,6,0,MODE_SMA,PRICE_CLOSE,Current + 1); double NonLagMa1 = iCustom(4,0,"TLOMI NonLagMA_v4",0,9,0,0,0,1,0,Current + 0); double NonLagMa2 = iCustom(4,0,"TLOMI NonLagMA_v4",0,9,0,0,0,1,0,Current + 1); //+------------------------------------------------------------------+ //| Variable End | //+------------------------------------------------------------------+ //Check position bool IsTrade = False; for (int i = 0; i < Total; i ++) { OrderSelect(i, SELECT_BY_POS, MODE_TRADES); if(OrderType() <= OP_SELL && OrderSymbol() == Symbol()) { IsTrade = True; if(OrderType() == OP_BUY) { //Close //+------------------------------------------------------------------+ //| Signal Begin(Exit Buy) | //+------------------------------------------------------------------+ //+------------------------------------------------------------------+ //| Signal End(Exit Buy) | //+------------------------------------------------------------------+ if (Order == SIGNAL_CLOSEBUY && ((EachTickMode && !TickCheck) || (!EachTickMode && (Bars != BarCount)))) { OrderClose(OrderTicket(), OrderLots(), Bid, Slippage, MediumSeaGreen); if (SignalMail) SendMail("[Signal Alert]", "[" + Symbol() + "] " + DoubleToStr(Bid, Digits) + " Close Buy"); if (!EachTickMode) BarCount = Bars; IsTrade = False; continue; } //Trailing stop if(UseTrailingStop && TrailingStop > 0) { if(Bid - OrderOpenPrice() > Point * TrailingStop) { if(OrderStopLoss() < Bid - Point * TrailingStop) { OrderModify(OrderTicket(), OrderOpenPrice(), Bid - Point * TrailingStop, OrderTakeProfit(), 0, MediumSeaGreen); if (!EachTickMode) BarCount = Bars; continue; } } } } else { //Close //+------------------------------------------------------------------+ //| Signal Begin(Exit Sell) | //+------------------------------------------------------------------+ //+------------------------------------------------------------------+ //| Signal End(Exit Sell) | //+------------------------------------------------------------------+ if (Order == SIGNAL_CLOSESELL && ((EachTickMode && !TickCheck) || (!EachTickMode && (Bars != BarCount)))) { OrderClose(OrderTicket(), OrderLots(), Ask, Slippage, DarkOrange); if (SignalMail) SendMail("[Signal Alert]", "[" + Symbol() + "] " + DoubleToStr(Ask, Digits) + " Close Sell"); if (!EachTickMode) BarCount = Bars; IsTrade = False; continue; } //Trailing stop if(UseTrailingStop && TrailingStop > 0) { if((OrderOpenPrice() - Ask) > (Point * TrailingStop)) { if((OrderStopLoss() > (Ask + Point * TrailingStop)) || (OrderStopLoss() == 0)) { OrderModify(OrderTicket(), OrderOpenPrice(), Ask + Point * TrailingStop, OrderTakeProfit(), 0, DarkOrange); if (!EachTickMode) BarCount = Bars; continue; } } } } } } //+------------------------------------------------------------------+ //| Signal Begin(Entry) | //+------------------------------------------------------------------+ if ((Buy1_1 > Buy1_2) && (TDI_Green1_1 > TDI_Red1_1) && (EMA1 < NonLagMa1)) Order = SIGNAL_BUY; if ((Sell1_1 < Sell1_2) && (TDI_Green1_1 < TDI_Red1_1) && (EMA1 > NonLagMa1)) Order = SIGNAL_SELL; if ((TDI_Green1_1 < TDI_Green1_2) || (EMA1 < EMA2)) Order = SIGNAL_CLOSEBUY; if ((TDI_Green1_1 > TDI_Green1_2) || (EMA1 > EMA2)) Order = SIGNAL_CLOSESELL; //+------------------------------------------------------------------+ //| Signal End | //+------------------------------------------------------------------+ //Buy if (Order == SIGNAL_BUY && ((EachTickMode && !TickCheck) || (!EachTickMode && (Bars != BarCount)))) { if(!IsTrade) { //Check free margin if (AccountFreeMargin() < (1000 * Lots)) { Print("We have no money. Free Margin = ", AccountFreeMargin()); return(0); } if ( AccountFreeMargin() > (1000 * Lots)) { Lot1 = AccountFreeMargin() * RizikosLygis * 0.5; Lot2 = AccountFreeMargin() * RizikosLygis * 0.2; Lot3 = AccountFreeMargin() * RizikosLygis * 0.3; } if (UseStopLoss) StopLossLevel = Ask - StopLoss * Point; else StopLossLevel = 0.0; if (UseTakeProfit) TakeProfitLevel1 = Ask + TakeProfit1 * Point; else TakeProfitLevel1 = 0.0; if (UseTakeProfit) TakeProfitLevel2 = Ask + TakeProfit2 * Point; else TakeProfitLevel2 = 0.0; Ticket1 = OrderSend(Symbol(), OP_BUY, Lot1, Ask, Slippage, StopLossLevel, TakeProfitLevel1, "Buy(#" + MagicNumber + ")", MagicNumber, 0, DodgerBlue); if(Ticket > 0) { if (OrderSelect(Ticket1, SELECT_BY_TICKET, MODE_TRADES)) { Print("BUY order opened : ", OrderOpenPrice()); if (SignalMail) SendMail("[Signal Alert]", "[" + Symbol() + "] " + DoubleToStr(Ask, Digits) + " Open Buy"); } else { Print("Error opening BUY order 1 : ", GetLastError()); } } Ticket2 = OrderSend(Symbol(), OP_BUY, Lot2, Ask, Slippage, StopLossLevel, TakeProfitLevel2, "Buy(#" + MagicNumber + ")", MagicNumber, 0, DodgerBlue); if(Ticket > 1) { if (OrderSelect(Ticket2, SELECT_BY_TICKET, MODE_TRADES)) { Print("BUY order opened : ", OrderOpenPrice()); if (SignalMail) SendMail("[Signal Alert]", "[" + Symbol() + "] " + DoubleToStr(Ask, Digits) + " Open Buy"); } else { Print("Error opening BUY order 2 : ", GetLastError()); } } Ticket3 = OrderSend(Symbol(), OP_BUY, Lot3, Ask, Slippage, StopLossLevel, 0, "Buy(#" + MagicNumber + ")", MagicNumber, 0, DodgerBlue); if(Ticket > 2) { if (OrderSelect(Ticket3, SELECT_BY_TICKET, MODE_TRADES)) { Print("BUY order opened : ", OrderOpenPrice()); if (SignalMail) SendMail("[Signal Alert]", "[" + Symbol() + "] " + DoubleToStr(Ask, Digits) + " Open Buy"); } else { Print("Error opening BUY order 3 : ", GetLastError()); } } if (EachTickMode) TickCheck = True; if (!EachTickMode) BarCount = Bars; return(0); } } //Sell if (Order == SIGNAL_SELL && ((EachTickMode && !TickCheck) || (!EachTickMode && (Bars != BarCount)))) { if(!IsTrade) { //Check free margin if (AccountFreeMargin() < (1000 * Lots)) { Print("We have no money. Free Margin = ", AccountFreeMargin()); return(0); } if ( AccountFreeMargin() > (1000 * Lots)) { Lot1 = AccountFreeMargin() * RizikosLygis * 0.5; Lot2 = AccountFreeMargin() * RizikosLygis * 0.2; Lot3 = AccountFreeMargin() * RizikosLygis * 0.3; } if (UseStopLoss) StopLossLevel = Bid + StopLoss * Point; else StopLossLevel = 0.0; if (UseTakeProfit) TakeProfitLevel1 = Bid - TakeProfit1 * Point; else TakeProfitLevel1 = 0.0; if (UseTakeProfit) TakeProfitLevel2 = Bid - TakeProfit2 * Point; else TakeProfitLevel2 = 0.0; Ticket1 = OrderSend(Symbol(), OP_SELL, Lot1, Bid, Slippage, StopLossLevel, TakeProfitLevel1, "Sell(#" + MagicNumber + ")", MagicNumber, 0, DeepPink); if(Ticket > 0) { if (OrderSelect(Ticket1, SELECT_BY_TICKET, MODE_TRADES)) { Print("SELL order opened 1: ", OrderOpenPrice()); if (SignalMail) SendMail("[Signal Alert]", "[" + Symbol() + "] " + DoubleToStr(Bid, Digits) + " Open Sell"); } else { Print("Error opening SELL order 1: ", GetLastError()); } } Ticket2 = OrderSend(Symbol(), OP_SELL, Lot2, Bid, Slippage, StopLossLevel, TakeProfitLevel2, "Sell(#" + MagicNumber + ")", MagicNumber, 0, DeepPink); if(Ticket > 1) { if (OrderSelect(Ticket2, SELECT_BY_TICKET, MODE_TRADES)) { Print("SELL order opened 2: ", OrderOpenPrice()); if (SignalMail) SendMail("[Signal Alert]", "[" + Symbol() + "] " + DoubleToStr(Bid, Digits) + " Open Sell"); } else { Print("Error opening SELL order 2 : ", GetLastError()); } } Ticket3 = OrderSend(Symbol(), OP_SELL, Lot3, Bid, Slippage, StopLossLevel, 0, "Sell(#" + MagicNumber + ")", MagicNumber, 0, DeepPink); if(Ticket > 2) { if (OrderSelect(Ticket3, SELECT_BY_TICKET, MODE_TRADES)) { Print("SELL order opened 3: ", OrderOpenPrice()); if (SignalMail) SendMail("[Signal Alert]", "[" + Symbol() + "] " + DoubleToStr(Bid, Digits) + " Open Sell"); } else { Print("Error opening SELL order 3: ", GetLastError()); } } if (EachTickMode) TickCheck = True; if (!EachTickMode) BarCount = Bars; return(0); } } if (!EachTickMode) BarCount = Bars; return(0); } //+------------------------------------------------------------------+ Redaguota: sliux (2014-02-03 16:12 ) |
|
2014-02-03 16:16 #383630 | |
zaibaras555, kodą įterpk tarp code BB tag'ų (redaktoriaus toolbar > 5 stulpelis > 3 eilutė). Gražiau tarpai kode žiūresis. Ankstesnes dvi tavo žinutes pakoregavau.
|
|
2014-02-03 16:18 #383631 | |
Taigi, vien jau dėl mano pastebėtos klaidos jau tau neatdarys orderių. Accountfreemargin tarkim tau grąžins, kad laisvi 1000, padaugins iš 0.1 ir mėgins atidaryti 3 orderius po 100 lotų. A, jau pataisei, bet nepadės, nes norės atidaryti 50, 30 ir 20, viso 100. Kokį leverage reik turėt, kad su 1000 usd galėtum atsidaryt 100 lotų?
Myliu pinigus
Yra dviejų rūšių rinkos analitikai: vieni nežino kas bus, kiti nežino, kad jie nežino kas bus. |
|
2014-02-03 17:05 #383636 | |
O jei pakeitus taip?
if ( AccountFreeMargin() > (1000 * Lots)) { Lot1 = AccountFreeMargin() * RizikosLygis * 0.005; Lot2 = AccountFreeMargin() * RizikosLygis * 0.002; Lot3 = AccountFreeMargin() * RizikosLygis * 0.003; mane dar labiau jaudina custom indikatorius ar tinkamai ivardinu Kodas: double TDI_Red1_1 = iCustom(4,0,"TDI_RT",0,Current + 0);
double TDI_Red1_2 = iCustom(4,0,"TDI_RT",0,Current + 1); double TDI_Green1_1 = iCustom(5,0,"TDI_RT",0,Current + 0); double TDI_Green1_2 = iCustom(5,0,"TDI_RT",0,Current + 1); double EMA1 = iMA(NULL,0,6,0,MODE_SMA,PRICE_CLOSE,Current + 0); double EMA2 = iMA(NULL,0,6,0,MODE_SMA,PRICE_CLOSE,Current + 1); double NonLagMa1 = iCustom(4,0,"TLOMI NonLagMA_v4",0,9,0,0,0,1,0,Current + 0); double NonLagMa2 = iCustom(4,0,"TLOMI NonLagMA_v4",0,9,0,0,0,1,0,Current + 1); |
|
2014-02-03 17:21 #383639 | |
Aš dar sakyčiau pirmas tikrinimas ar yra pinigų yra beprasmis. Nes jei ir yra tiek kiek tikrini, nebūtinai užteks tam ką susaičiavai po to. Susumuok visus tris lot gautus ir rezultatą pakišk funkcijai acountfreemargincheck su visais kitais reikalingais duomenimis. Ir jei nebėra, tada arba mažink lotus ar dar ko nors imkis. Sugalvosi pats.
O tu nesijaudyk, tiesiog pabandyk. Išsivesk gautas reikšmes į ekraną ar į logą ir palygink su tuo pačiu indikatoriuk ekrane. Ko čia jaudytis... Jaudytis rek prieš mergų, kad atsistotų. Myliu pinigus
Yra dviejų rūšių rinkos analitikai: vieni nežino kas bus, kiti nežino, kad jie nežino kas bus. |
|
2014-02-07 11:51 #384472 | |
Gal kas galetu parasyti robota,arba padeti man ji parasyti,MACD divergencijos/konvergencijos pagrindu,isbandziau labai daig yvairiu strategiju,indikatoriu,bet niekas nepasiteisino,likau prie sitos,jinai man pasirode labiausiai pelninga ir patikima,stai video http://www.youtube.com/watch?v=rafbPruq4tg pagal kuria noreciau susikurti toki robota,gal kas galetumet man padeti tai iigyvendinti)))
|
|
2014-06-21 18:26 #404469 | |
kaip uzdarot orderius?kokius parametrus renkates?(magic,ticket,ordersymbol....ir tt)?
|