Christian Berrigan
Christian Berrigan
Self
Friends

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

Christian Berrigan
Added topic Simple long-used calc for $ per pip (pip value) fails on only one symbol at new broker but has always worked on all symbols at several other brokers
Hello, Thank you in advance for ANY help I can get on this -- I'm not a newbie and this has me perplexed. I have a simple calculation I've always used to calculate dollars per pip (account funded in USD) and it has always worked on all forex and
Christian Berrigan
Added topic Question on good programming practices re: PositionSelectByTicket()
Hello, Quick question on good programming practices. I have a trade entry manager EA which, after the users clicks to buy/sell then tries to immediately select the ticket number (which was captured during the market order entry process). Sometimes
Christian Berrigan
Added topic Workable but nagging issue w/CDialog -- mouse events and drags flow through to the chart
I got my big issues with CDialog worked out thanks to  Manuel Alejandro Cercos Perez  -- appreciate the suggestion Manuel! A nagging issue is that when I click on a button on the dialog, if I move the mouse at all while clicking, it scrolls
Christian Berrigan
Added topic Desperately seeking help on a CDialog problem -- mostly runs fine, but periodically becomes unusable
I have 30-40 hours studying and partially resolving this problem through ways that are not solving the problem, but trying to avoid it and/or reset it, with moderate but not complete success. Anyone with experience dealing with nuances of instances
Christian Berrigan
Added topic Making CPanel solution more pretty
Hello, I've worked through issues I was having with behavior of a subclass of CPanel used in a custom indicator of mine. My primary remaining issue was maintaining the maximized/minimized state of the panel when changing timeframes. I solved this
Christian Berrigan
Added topic Challenges implementing MT5 published example code for CPanelDialog example
Hello, I've reviewed and begun testing the code and suggestions in this article:   https://www.mql5.com/en/articles/345 I'm using the panel with an indicator, exactly as the sample code. Before I try to expand upon this example for my own
Christian Berrigan
Added topic Problem with background objects interfering with OBJ_RECTANGLE_LABEL display
Hello, Somethings seems buggy with an OBJ_RECTANGLE_LABEL.  I have the same problem whether the object is drawn manually in the trade station or created programmatically in an indicator. A background object from another indicator is causing the
Christian Berrigan
Added topic Trouble with SQL Database query results.
Hello, I'm starting to work with Databases and I'm getting more records in a query in MQL than if I paste the exact same query in the database interface. I literally paste the SELECT statement from my MQL code into the database query interface. 
Christian Berrigan
Added topic Is it possible for an indicator to know if it was dropped on a chart vs. created by iCustom() from another indicator?
Hello all, I have an indicator #1 that uses iCustom() to call another indicator #2. Indicator #2 as part of its operation puts labels on the chart. I can use ChartIndicatorsGet() within indicator #2 to test if it actually exists on a chart and if
Christian Berrigan
Added topic I wrote a function so an indicator can send one pseudo-tick to chart if the market is closed, any way to improve it?
Hello, This code appears to work great when dropping an indicator on a chart when the market is closed.  I've prevented recursive calls with a static variable. Hoping an expert might be willing to evaluate this code for: - Internal terminal
Christian Berrigan
Added topic iCustom() working last night, no code changes and is failing this morning -- Anyone know of weird environment situation that can happen?
Hello, Weird deal. Went to bed last night after working on a program.  It uses and iCustom() call which was working successsfully.  In the OnCalculate() the BarsCalculated() returned a value, and CopyBuffer() was getting values. Woke up
Christian Berrigan
Added topic Is it possible for a script to determine what input values are currently being used by an indicator on the same chart?
UPDATE:  Solved.  See solution below. Hello, I'm wondering if it is possible for a script to discover what input parameter values are currently being used by an indicator on a chart. Here is the most concise example I can provide, with the
Christian Berrigan
Added topic Getting date of a bar from history (not from indicator data that is not-yet loaded) Alternative to iTime() (which requires data loaded)
----- will CopyTime() do this?  Looks like it also requires data loaded in the indicator. ----- so I'm looking for the equivalent of this but for a specific bar and return a date instead of a bar number. SeriesInfoInteger ( _Symbol , _Period
Christian Berrigan
Added topic Can't access properties of CObject s stored in global CArrayObj array
UPDATE:  Clearly I was overthinking this.  I just created a straight array of CStatuses, figured out how to avoid memory leaks, and I'm good.  Still have a lot of reading up to do on CList usage and understanding proper use of
Christian Berrigan
Added topic Basic OOP questions re: CList and CObject
UPDATE:  I FIGURED IT OUT -- so please don't spend time analyzing the code.  Thank you!  I posted my solutions below as replies (to myself LOL...) Hello and thanks again for all the previous help! I'm trying to get a basic
Christian Berrigan
Added topic Defined constant not evaluating properly in if statement ....
Hello, I'm having a hard time understanding why a defined constant is not evaluating properly in an if(). In the debugger, I don't understand how it is possible I could be positioned on this line of code, given the following print statement and the
Christian Berrigan
Added topic Custom indicator in strategy tester w/visualization loads history but tick by tick doesn't update values
Hello, I'm sure this is basic -- can anyone direct me to some information (or the basic solution) as to why a custom indicator which works on the charts does not update tick by tick in the strategy tester ? When the visualization loads, the
Christian Berrigan
Added topic need help with compiling error: parameter conversion not allowed
Hello, I'm stuck on a compiling error.  Maybe something stupid but I can't see it or understand it.  Help greatly appreciated. I've tried to only include relevant code to make this as easy as possible. The problem is calling a function I've
Christian Berrigan
Added topic inconsistent "unexpected token" error when compiling indicator
Hello, I have a situation I'm stuck on.  The defined constants compile in the else block, but fail to compile in the for block, generating an "unexpected token" error. If I change the constants in the for block to literal 1 or 2, then the
Christian Berrigan
Added topic Apparent BUG in strategy tester MT5 identified: Profit/Loss 100 times larger than it should be.
Suddenly my strategy testing on BTCUSD and ETHUSD were trading the profit/loss at 100x what they should have been based on the actual lots traded in the history. For example, trading .01 lots was posting profit/loss at the 1.0 lot level, and trading
12