MisterDog
MisterDog
Friends

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

MisterDog
Added topic Standard Deviation Channel information
I would like to find the price difference between the outer lines of a Standard Deviation Channel. The points that are marked A and B. I can find the price and time of the center line but this doesn't seem to be helpful. I've also explored using
MisterDog
Added topic additional OP_SELLSTOP or OP_SELLBUY ???
I would like to add another sell stop / buy stop to take some profits early. I am placing an order with a take profit and stoploss with code something like this orderResult= OrderSend ( Symbol (), OP_BUYSTOP ,lotAmount,somePrice, 3
MisterDog
Added topic Trouble with Global Variable
I can't retrieved a Global Variable in an EA. First I am setting a Global Variable with a script. Then I am attempting to read the Global Variable in an EA. Here is the code and errors. What is wrong? script... int start() {    int testVar;
MisterDog
Added topic How to manage multiple accounts and EA's
I'm interested to know the best practices for managing multiple accounts and multiple versions of EA's. I've been working with the Demo account for years and now have become profitable and will start working with a Real account as well as the Demo
MisterDog
Added topic Strategy Tester Giving Strange Results
I was using the strategy tester last year without difficulty. Now I can't seem to get it to work. It's a new installation and an upgrade to build 625. Bars just won't appear in the chart. And I indicate the spread should be 2 pips yet Mt4 claims the
MisterDog
Added topic MODE_STOPLEVEL returns 0
Shouldn't this line of code returned something other than zero? Print ( "Stop level in points=" , MarketInfo ( Symbol (), MODE_STOPLEVEL )); For me it simply returning "0" rather than the minimum stop level. I thought perhaps the stop level
MisterDog
Added topic How to take partial profits -- OP_SELLLIMIT?
I'm not sure how to take part of my profits at a price before Take Profit line of an order. I place an order with code that looks something like this...          OrderSend ( Symbol (), OP_BUY , 0.10 , Ask , 3
MisterDog
Registered at MQL5.community
MisterDog
Added topic Changing the number of Bars on screen?
Is there a way to programmatically change the number of bars on the screen -- shrink or grow the chart horizontally
MisterDog
Added topic Learning about Order processing - Indicator displays total profit/loss for past 24 hours.
Hi All, I wanted to learn more about order selection and processing so I wrote this indicator. It displays the profit or loss of the past 24 hours (or whatever time period you like). Two areas for improvement are: it should run each time an order
MisterDog
Added topic iEnvelopes does not accept negative shift
How do I get iEnvelopes to use a negative shift?    int maPeriod = 24 ;    double deviation = 0.15 ;    int shift = 10 ;   // this works    int shift = - 10 ; // this does not work
MisterDog
Added topic Best practices for Ask and Bid
What is the best way to handle the difference between Ask and Bid. When using OrderSend I use Ask to buy and Bid to sell. But when setting take-profit and stop-loss should I also consider Bid and Ask depending upon whether I'm buying or selling. The
MisterDog
Added topic Opening a market order above the high price
It is not easy to open a buy market order above the high price. Does this happen much?   By the way, it was not a successful trade. ;-)
MisterDog
Added topic Fast and Slow program structure
Do we need to think about the speed of  functions  in our program structure? If code uses Trade Functions between the the part of the code that makes the decision to trade and the code that actually makes the
MisterDog
Added topic The best way to round numbers to the thousands -- not decimal places ?
I'm trying to figure out the best way to change something like this, 21345.6789 to this, 21000 . NormalizeDouble seems to work in decimal places but I would like to round down to the nearest 1000s . I'm trying to use DoubleToStr but it seems
MisterDog
Added topic Display the Closeout price (margin call) routine
I'm trying to write a routine that will display the Margin Call Closeout price (margin call) for the current trade. I got this far but something tells me is just not this easy. I've compared my results to the OANDA Margin Closeout Calculator
MisterDog
Added topic OrderSend trouble on Oanda
I'm moving my MT4 to Oanda but having trouble placing orders (OrderSend).  I've read through the various threads here and I still can't seem to find a solution. Of course Oanda can not provide technical support MT4. But Oanda says they do
MisterDog
Added topic A math formula I can't figure
I'm writing an indicator where the "angle" (price change overtime) of a moving average is a multiplier for a standard deviation line. I'm looking for help with the mathematical formula that will take a moving average input ranging from
MisterDog
Added topic Use a script to place a trade? -- 4109 error
How can a script place a trade? The error 4109 shows up. There's no opportunity to enable the checkbox to "Allow live trading" in the expert properties . The script just runs and exits a second later. Here is the bare bones script I'm
MisterDog
Added topic Stoploss & Takeprofit lines indicator
I've been setting my stoploss and takeprofit based on price volume. So I created this indicator that determines the high and low for some number of bars and uses that spread to place two moving horizontal lines indicating where the stoploss and
12