- Search Crypto Craft
- 131 Results (21 Threads, 110 Replies)
- Pipsgeek replied Mar 8, 2012
Oh... I thought that was only needed in loops. So how exactly does it keep multiplying it? I hope this is only the rarely the case because I have alot of code to change then... Thanks alot because I never wouldve gotten a clue.
External int changes into -570425344 (No calculations or whatever)
- Pipsgeek replied Mar 8, 2012
Thanks for the replies. Today is a really bad day. I rewrote the problematic part, and luckily(unluckily?) I'm getting the same problem.
External int changes into -570425344 (No calculations or whatever)
- Pipsgeek replied Mar 8, 2012
200-300 pips? You mean total for all 3 pairs? I had it on EURUSD and only made 29*3 = 97 pips. Of course, I had the EA set on close orders if they don't hit TP/SL after 16 hours. I have no idea how to calculate what timezone servertime is in. MQL4 ...
simple trend method EA request, will pay
- Pipsgeek replied Mar 8, 2012
Probably only an issue with bucketshops. Either way, it's only 1 extra line anyway so it isn't a big deal to include it just to be 100% safe. And it wouldn't cause an error in weekends, it would just screw up the values and any trading as a result ...
Can anyone explain how to use time with iBarShift?
- Pipsgeek replied Mar 8, 2012
Running it in strategy tester. If I redefine the variable back to 30 right before it works fine, then it reverts back to -570whatever if I change it back.
External int changes into -570425344 (No calculations or whatever)
-
External int changes into -570425344 (No calculations or whatever)
Started Mar 8, 2012|Platform Tech|10 repliesI have defined it as 30. But it shows that mumbo jumbo in the log. This is before any ...
- Pipsgeek replied Mar 8, 2012
Yea, but google is evil and on the road to total world domination.
How to set your stop loss before sending market order on MT4
- Pipsgeek replied Mar 8, 2012
It would be better if you are just making a script to send the whole order. external int PipSL = 7; external int PipTP = 7; external double Lots = 1; external string BuySell = "Buy"; double SL; double TP; int Pip = 0.0001; if (Digits == 2 || Digits ...
How to set your stop loss before sending market order on MT4
- Pipsgeek replied Mar 7, 2012
it's 0? Bold part is the value you need: SetIndexBuffer(0,blahblah[]) If you have Function(int,int,int) and you switch up the integers, then, well, it won't use the right ones. It's generally best to use iCustom with ALL parameters that matter, just ...
How to pull value from another indicator for script
- Pipsgeek replied Mar 7, 2012
I was totally overcomplicating it. I now know what ibarshift is for. int i; string starttime; int closetime = SessionOpenHour+8; if ((closetime) <10) {starttime = "0"+closetime+":00";} else {starttime = closetime+":00";} datetime start = ...
Can anyone explain how to use time with iBarShift?
- Pipsgeek replied Mar 7, 2012
Yea, I did that with if(iTime(pair,PERIOD_H1,0) <= starttime) {starttime = starttime - 86400;} and starttime = starttime - 86400; So it decreases it by 24 hours if it's bigger or equal then the current bar open time (I don't want or need the values ...
Can anyone explain how to use time with iBarShift?
- Pipsgeek replied Mar 7, 2012
You need to look at the indicator and find the SetIndexBuffer of the middle line. Then you need to look at the settings of the indicator. So lets say the indicator has parameters TMA_Length and TMA_Period (in that order, the order the parameters are ...
How to pull value from another indicator for script
- Pipsgeek replied Mar 7, 2012
Interesting. starttime is 16:00. 16:00 march 8 2012 to be exact. Anyone got a Tardis? Anyway this is a problem...how do I create a non-infinite loop that checks each day at 16:00? string starttime = StrToTime("16:00"); if(iTime(pair,PERIOD_H1,0) <= ...
Can anyone explain how to use time with iBarShift?
- Pipsgeek replied Mar 7, 2012
double hsum=0; double lsum=0; string starttime; int SessionOpenHour = 8; int closetime = SessionOpenHour+8; if ((closetime) <10) {starttime = "0"+closetime+":00";} else {starttime = closetime+":00";} int i; int stop = NumberofDays*24; for ...
Can anyone explain how to use time with iBarShift?
- Pipsgeek replied Mar 7, 2012
TimeDayOfWeek. Thanks. Edit: And it's only really going to have any use on the daily chart.
Can anyone explain how to use time with iBarShift?
- Pipsgeek replied Mar 7, 2012
I will be putting in the time needed in an external int and calculate everything from that, so with DST this external int can be simply changed and it should work correctly. I'm trying to make something similar to an Average Daily True Range ...
Can anyone explain how to use time with iBarShift?
- Pipsgeek replied Mar 7, 2012
Thanks for the reply. I was under the impression that ibarshift didn't count weekends as bars. So I might aswell use my own loop to find bars with a certain time? Also, your second example will work on every day? So it will always find the bar 10:58 ...
Can anyone explain how to use time with iBarShift?
-
Can anyone explain how to use time with iBarShift?
Started Mar 7, 2012|Platform Tech|17 repliesSuppose I want data from a bar of a certain open time every day. How do I go about this? It ...
- Pipsgeek replied Mar 6, 2012
Well you replied so that's already kind enough. I was getting used to staring at my margin level. It's annoying, but not worth contacting MBT over since it's only demo and I can change my magic numbers. Something similar did happen (I forgot to ...
Stuck with open orders on MT4 "Off Quotes"
- Pipsgeek replied Mar 5, 2012
This EA shows completely different backtested results. I do think there is a point in posting the code. Fortaleza requested it and if he's satisfied with the EA then that's what matters. Perhaps he's asleep during certain session opens and he wants ...
simple trend method EA request, will pay