- Search Crypto Craft
- 1,856 Results (15 Threads, 1,841 Replies)
- Gumrai replied Aug 15, 2013
My inmternet connection has been absolutely atrocious today, will look into the problem and get back to you. If you don't hear from me it's because I cannot connect. One of the joys of living in Thailand. The Thais only excel at one thing and that's ...
Change "Open Order TP(target)" if other pending order triggered
- Gumrai replied Aug 15, 2013
if time is not required for a vertical line, where do you suggest that the line should be placed? What does "verticalcom hours and minutes" mean?
I will code your EAs and Indicators for no charge
- Gumrai replied Aug 13, 2013
Now you understand what I have been saying, you will get there

Wrong "else" statement? Please help!
- Gumrai replied Aug 13, 2013
Yes, you are right. I was thinking of when comparing doubles to check that they weren't the same. It was to do with modifying stoplosses. My code checked that the amended stoploss was not the same as the OrderStopLoss, before trying to modify, but ...
Bug in simple code, please help to pinpoint
- Gumrai replied Aug 13, 2013
If you start with a market order, the EA will treat it as a Master Ticket If you start with a pending order, the EA does not know whether this is a Master or a Slave Ticket. This is only an issue when the EA is re-initialised because of changing ...
Change "Open Order TP(target)" if other pending order triggered
- Gumrai replied Aug 13, 2013
It's much easier to read if you use the insert code box guys. So if the first line is true but the 2nd line is false the, else code will be actioned If the first line is true and the 2nd line true, the else code will not be actioned If the first ...
Wrong "else" statement? Please help!
- Gumrai replied Aug 13, 2013
Yes, but what is mPriceRange and how likely is it that this will be exactly equal to mPriceDistance
Wrong "else" statement? Please help!
- Gumrai replied Aug 13, 2013
Not knowing the calculations, but it is possibly highly unlikely that if(mPriceRange != mPriceDistance) // only if mPriceDistance is not same then cont will ever be false.
Wrong "else" statement? Please help!
- Gumrai replied Aug 12, 2013
OK. The box is back to check whether pending orders have already been opened. There is also an additional box for if you enter a pending order as the Master trade. If the EA detects a pending trade, it has no way to differentiate between a Master or ...
Change "Open Order TP(target)" if other pending order triggered
- Gumrai replied Aug 12, 2013
For UJ //---- int WhatCorner=0; double pnt=0.01; color FontColor; for (int uji=1; uji<Bars-1; uji++) { double UjClose = iClose("USDJPY",PERIOD_D1,uji); double UjOpen = iOpen("USDJPY",PERIOD_D1,uji);} UjClose = iClose("USDJPY",PERIOD_D1,0); UjOpen = ...
Symbol price indicator (Dashboard)
- Gumrai replied Aug 12, 2013
//---- int WhatCorner=0; double pnt=0.0001; color FontColor; for (int eui=1; eui<Bars-1; eui++) { double EuClose = iClose("EURUSD",PERIOD_D1,eui); double EuOpen = iOpen("EURUSD",PERIOD_D1,eui); } EuClose = iClose("EURUSD",PERIOD_D1,0); EuOpen = ...
Symbol price indicator (Dashboard)
- Gumrai replied Aug 12, 2013
I don't see where you use Digits in that code, you use 0 in the DoubleToStr. What is the point of calculating UjClose and UjOpen for every bar if you do nothing with the result
Symbol price indicator (Dashboard)
- Gumrai replied Aug 12, 2013
If that code is in Start() it will be trying to create an object that already exists every tick. But I don't think that is your problem. Are you creating these labels in Init() and then over-writing them in Start() ?
Symbol price indicator (Dashboard)
- Gumrai replied Aug 12, 2013
I see that chjungen offered an EA some posts back, This could be an opportunity for 2 brains to work on any further developments. chiungen, if you are interested in working together, please post in the other thread
Xandi mysterious Pyramid
- Gumrai replied Aug 12, 2013
Thanks 4x, Is it OK to use your first name?
You have to remember that 2 months ago, I knew nothing about coding, I am very much a novice, so everything that I post should be tested thoroughly on demo. I hope that there will be feedback from the ...Xandi mysterious Pyramid
- Gumrai replied Aug 12, 2013
And I am only coding according to your plans, so if it works, it is down to you Xandi
Xandi mysterious Pyramid
- Gumrai replied Aug 12, 2013
I hope that you mean "anything is possible, when he tries it"
You give me too much credit mate. I fumble my way through this coding lark and seem to get there in the end, simply due to determination.Xandi mysterious Pyramid
- Gumrai replied Aug 12, 2013
I have seen this type of thing when downloading source code from "The Book", so yes, it may be some sort of Russian thing. What gets me, in the code posted by 2George, nearly every line begins with //, so it would be ignored by the compiler?
Please translate indicator text
- Gumrai replied Aug 11, 2013
Because the markets are not open at the weekend, the only way that I can check for errors in the EA is by using the strategy tester. To do that, the EA needs to open a trade. Usually I delete the trade open order from the EA, but this time I thought ...
Change "Open Order TP(target)" if other pending order triggered