- Search Energy EXCH
- 3,858 Results (90 Threads, 3,768 Replies)
-
Ronald Raygun replied Aug 24, 20091) The position of the order. Use the OrdersTotal() function to determine how many orders there are. So, let's say there are 10 orders, you then cycle through each order (position 1 through 10) and check each order that way. 2) Ticket of the order. ...
Learning out of desperation----a bit of a blog
-
Ronald Raygun replied Aug 24, 2009OrderSelect() selects the orders... Then you can use: OrderModify() OrderClose() To do whatever you need to the orders.
Learning out of desperation----a bit of a blog
-
Ronald Raygun replied Aug 24, 2009My suggestion for spike detection is if the true range is more than 2 standard deviations away from the 20 bar ATR.
Adding Spike Protection
-
Ronald Raygun replied Aug 23, 2009Maybe you'd wanna call them Adam? It takes 5-10 mins to load a server.
Free VPS for 1 month!!!
-
Ronald Raygun replied Aug 23, 20091) Yes, if you want to use the first 4 hours after the bar you designate as the start bar. 2) StopLossMultiplier applies to the range defined for the current week. The range is LongEntry - ShortEntry, which is High to Low plus both buffers at either ...
4H Box Breakout
-
Ronald Raygun replied Aug 22, 2009Simultaneous buy/sell orders are being removed by the NFA, I prefer to keep the pending orders internal to the EA, so the broker cannot see that I have two orders open in opposite directions (implying a straddle). As for your code, are you saying ...
4H Box Breakout
-
Ronald Raygun replied Aug 21, 2009Not necessarily. That applies to the start() function. If you wrote a custom function, that obviously wouldn't apply.
Learning out of desperation----a bit of a blog
-
Ronald Raygun replied Aug 21, 2009Nice research there Dave. I agree that my snippet of code isn't good programming practice, but I figured it makes a cheap and fast fix. I'm waiting for MQL5 to be released because I'm not really that willing to overhaul the MT4 template I use. And ...
4H Box Breakout
-
Ronald Raygun replied Aug 21, 2009return command is the end of a function. Yes, you can have multiple return commands in a fuction
Learning out of desperation----a bit of a blog
-
Ronald Raygun replied Aug 21, 2009[quote=droland;2976165]Ronald Raygun - Octomanoak is having trouble posting so he has asked to post this for him. If you really are using droland's settings, you need to use the 1HR chart. Everything looks ok except for the following: ...
4H Box Breakout
-
Ronald Raygun replied Aug 21, 2009Fairly simple... int DontQuit (OrderSend Properties) { bool TradePlaced = False; int AttemptCount = 0; while (!TradePlaced) { if(OrderSend(...) > 0) { TradePlaced = True; } else { AttemptCount++; } } return(AttemptCount); } the way this code works, ...
Need a coding advice......
-
Ronald Raygun replied Aug 21, 2009Your solution says the EA will enter the trade if the bar opens outside the box. My solution says the EA will enter the trade if the price moves outside the box. If you set EachTickMode to false, my solution says the EA will enter the trade if the ...
4H Box Breakout
-
Ronald Raygun replied Aug 21, 2009Get a fresh install of metatrader. Put only my EA on that, and tell me what happens.I'm not sure if you have other indis in the terminal.
4H Box Breakout
-
Ronald Raygun replied Aug 21, 2009Behind the scenes: The EA first scans each bar going back until it finds the start of the week (as defined by you). This start could be Sunday, Monday, Tuesday, etc. The EA then counts forward however many bars you want, to establish the time range. ...
4H Box Breakout
-
Ronald Raygun replied Aug 21, 2009The issue is what happens if the trade is placed on the same bar. (presumably after the high). I realize this isn't perfect, but at least I'm trying to cover my bases.
Stealth StopLosses?
-
Ronald Raygun replied Aug 20, 2009url Plenty more where that came from =P
Looking for MQL4 programmer
-
Ronald Raygun replied Aug 20, 2009That EA runs on a relatively underpowered Intel Little valley (~1GHZ) with 30 of its buddies with no problem. What are the specs of your computer? As for getting the EA to work... 1) How many bars from the week's start on your timeframe makes 4 ...
4H Box Breakout
-
Ronald Raygun replied Aug 20, 2009Couple things: 1) You both seem to be clawing at each other for programming business. 2) Your brand new avatar. 3) Someone has already come to my website asking for something very similar to this.
Looking for MQL4 programmer