Shaun Overton
Shaun Overton
Friends

Add friends via their profile or user search and you will be able to see if they are online

Shaun Overton
Added topic Problem with FileWriteStruct
I'm trying to write a script which writes my trading history to a binary file. I tried to follow the example at https://docs.mql4.com/files/filewritestruct, but I keep getting the compile error "'tradeBuff' - parameter conversion not allowed OSR
Shaun Overton
Registered at MQL5.community
Shaun Overton
Added topic Pass enum as method parameter
I declared a method named EnterTrade() that only takes one variable, an enumeration named TradeDirection. The compiler throws the errors TradeDirection - declaration without type. Why won't this compile? void EnterTrade(TradeDirection dir) { } enum
Shaun Overton
Added topic Webinar: Developing a trading strategy
Developing a successful strategy is one of the most agonising tasks that a trader can undertake. TradersNow started its project years ago with a mathematically sophisticated algorithm to predict the markets. Yet, even with the advantage of a
Shaun Overton
Added topic Setting TP/SL on gold
I wrote this simple gold script to set a stop and tp on gold at Alpari for an open long position. I set the values to 1,000 pips away - it still won't let me set, even though it will allow me to set the same values manually. How do I fix this
Shaun Overton
Added topic Objects Behind Chart Price
Can I create objects that appear behind the chart price? I'd like to reduce the likelihood that I accidentally select the objects. Does putting them behind the price, if it's possible, help reduce accidental highlighting
Shaun Overton
Added topic Reading User's System Time
I want to write an EA so the user can enter trading times using local time instead of broker time. I've seen people reference the kernel32.dll and other system dlls. Does anyone know which dlls and functions I can reference to get the local
Shaun Overton
Added topic MQL5 DLL in .NET
Does MQL5 support dlls that are NOT written in C++? Can I write a dll in C# or VB without writting a C++ wrapper
Shaun Overton
Added topic Find HLOC without bar index
Do any functions exist in MQL4 for finding the Hi/Lo/Open/Close based on time instead of bar index? Ie, if I want to know the hi from 13:25 but I don't know how many bars ago that was, how can I find out
Shaun Overton
Added topic Deficient data 'GBPJPY240' (77 rate records)
I'm getting this error: 2009.06.23 14:27:31 TestGenerator: deficient data 'GBPJPY240' (77 rate records) The problem is that when I open the history center, it lists 2.9 million records for GBPJPY1 and 3,670 for GBPJPY240. I ran the period converter
Shaun Overton
Added topic Exit won't work
I wrote a simple strategy that fades big bars. The entries work fine, the exits do not. The idea is that I mark lastTradeTime = Time[0] whenever a trade enters. If lastTradeTime != Time[0], it should be time to close the trade... except it's not
Shaun Overton
Added topic Indicator Array Question
If I set detrender[i] = 1.3100 or some other constant , then the indicator plots without any issues. However, when I make any references to the smooth array, it won't show any values. How do I get this value to calculate properly? int start ( )
Shaun Overton
Added topic 4105 OrderModify Error
Purpose: Add a set stop loss and take profit to all open trades (regardless of currency pair) Problem: This script generates error 4105 when placed on a chart. Invalid ticket for OrderModify function. My demo account currently has an open trade with
Shaun Overton
Added topic Too many orders
I tried writing a simple EA that buys whenever stochastics crosses up. The good news is that it buys at the correct time. The bad news is that it buys many, many times per bar. I attempted to limit this by counting the total orders. It then makes
Shaun Overton
Added topic C# dll, error 127
I've gone through the forum posts and cannot figure out how to resolve error 127 . I created a .def file but I'm not sure why or what to do with it... none of the samples even reference the file, although an earlier post discussed it resolving the
Shaun Overton
Added topic Simple Logic Error
I'm programming an indicator to determine the highest high in the past 5 bars. This code just plots a straight line across the chart and I can't figure out why. See comments in start() for more info. #property indicator_chart_window #property