Forum

Help with Array Out of Range - Solved

Hey all, I'm getting an array out of range on this custom indi. I can't seem to figure out why. Any help is greatly appreciated! //HullAMA.mq4 #property copyright "Copyright © 2004, by konKop,wellx" #property link "http://www.metaquotes.net" #property indicator_chart_window #property

Has anyone else gotten an optimization result like this?

Has anyone else gotten an optimization result like this? The negative profit is HUGE. And my EA is always using a stoploss. This is the first time I've ever seen this. Thanks

Indicator has different values when run with EA

Good Morning, I'm testing an indicator with an EA (using iCustom). There's only one buffer. Basically the indicator will cross back and forth across a zero value. If the indicator is positive, I'll buy. If it's negative, I'll sell. My trouble is that when I run the EA and indicator in visual mode

[SOLVED] Indicator Changes Behavior after Initial Loop

Hello, I have programmed an indicator which seems to work at first when placed on a chart but will change it's behavior when running. I know it has something to do with how I'm calculating Limit for the for loop. Maybe I'm missing something obvious... Here's what I've got: (running on the M1 chart)

Name of variable causing Divide by Zero

I ran into something of a bug while writing some code to round spread data to the nearest multiple of my choice. See below: //Given that (in the variable declaration): //extern double DMultiple4 = 2; if (SignalID == 4 ) { RefreshRates(); D = ((Ask-Bid)* 100000 ); Print("DMultiple4 is