Forum

Linear regression values

Can someone tell me how I can get the linear regression vallue OBJPROP_PRICE2 for the hour graph and the minute graph? What should the code look like? Many thanks, Marius

Function call

//If I change c, why do Keep on getting a 0? int Crossed(double LineTop,double LineBottom,double Trigger) { static int LastDir = 0; static int CurrDir = 0; if (Trigger>=LineTop) { CurrDir=1; } else { if (Trigger<=LineBottom) { CurrDir=2; } else { if (Trigger<LineTop || Trigger>LineBottom) {

Help with Script

I am new at this and tried the following from the book and don't know how to fix it. Can someone help please. EURUSD //-------------------------------------------------------------------- // simpleopen.mq4 // The code should be used for educational purpose only

Code a strategy:

Anybody who can help? or point me to someone who can

Help please, simplest way to close pending orders if orders that was open closed.

I am still working through the book, and try small tasks at a time. I would like to find out what the best way is to approach this. What should the script look like for: If no open orders, close all pending orders . Any help would be appreciated. Marius