Codes

Volumes Spread mod for MetaTrader 5

Volumes Spread mod

Smooth Algorithms - Corrected/Modified for MetaTrader 5

Smooth Algorithms - Corrected/Modified

Volume Average percent spread mod for MetaTrader 5

Volume Average percent spread mod

Forum

Dynamic Indicator Variables?

How can I reinitialize an indicator's period based on the output of another indicator's handle? Would I create the int/double on the oninit tab, or inside the oncalculate tab? Would I copy the handle/buffer over to OnTick and calculate the period variable and return it back to oncalculate? Edit: I

Chronic down voters. lol (Rant warning, be advised to laugh)

I just rechecked the code I uploaded yesterday and today about an hour ago they were both 1 and 2 vote 5 stars each. And then I rechecked a bit ago now they're averaged in such a way that someone had to have down voted both 1 star on each, at the same time. Is there a codebase critic amongst us that

Volume Weighted Hull MA

Is it possible? Is the code compatible

What's the best way to set an indicator refresh loop?

One issue I'm having modifying pre-existing indicators is the indicator plot on the graph will stop updating and return to zero, until I recompile or change timeframes and back again. I've been trying everything. What's the best code for an indicator loop? Here's my code, trying to combine Bears and

How to change input menu options using drop down menu

How can I create an indicator that has multiple MAs, but not showing all the MA options at once, but instead revealing the settings for the MA chosen by the first drop down menu? Would I use something like this? enum MAchoice { MA1, // blah MA2, // blah MA3, // blah }; input MAchoice MAmethod = MA1;

iMAOnArray undeclared identifier Error

Why is this happening? do I need to re-install Metatrader/MetaEditor completely from scratch? Am I supposed to add an #include file? What's going on here? I searched the internet and I can't seem to find a similar issue anywhere. I'm using it in the OnCalculate area. I've tried typing it in other

Double Sine Weighted MA code?

Is there a way to make this a Double Sine Weighted MA? double workSineWMA[][_maWorkBufferx1]; #define Pi 3.14159265358979323846264338327950288 double iSineWMA( double price, int period, int r, int instanceNo= 0 ) { if (period< 1 ) return (price); if ( ArrayRange (workSineWMA, 0 )!= totalBars)

Need help combining 3 oscillator's values into one value

I want to combine RVI Signal(1) (PERIOD_CURRENT), CCI(PERIOD CURRENT) and Chaikin(PERIOD_M1) into one value and turn it into an indicator. I have never coded an indicator and I need help. Please point me in the right article to read, or code it and paste it if you feel so kind. :D Timeframe of the

Custom Criteria Coding issues

Will the following code work? double profit_factor = TesterStatistics(STAT_PROFIT_FACTOR); if( STAT_EQUITYDD_PERCENT < 2.5) if(STAT_TRADES > 10) if(STAT_PROFIT_FACTOR == 0.0) { profit_factor = 500; } I'm trying to make it so zero losses that have over a certain number of trades and under a

What is the highest Optimizer dot color?

I've seen Green, Dark Green and Gold, but is there anything higher than Gold? I'm seeing this silver or platinum colored dot testing the EA I made. Is that less than green or higher than green? is it grey, silver, platinum, or what