Chart2





#define IND 10

#import "c:\\ChartPlusChart\\SharedVarsDLLv2.dll"

 
 
 double   GetFloat@4 (int N);
 int   GetInt@4 (int N);
 //   Init@0 
 void   SetFloat@12 (int N, double Val);
 void    SetInt@8 (int N, int Val);
 


#import

int handle; 
int st=0;
 
void init()
{
SetFloat@12(IND,Close[0]);
SetInt@8(IND,OrdersTotal());
SetFloat@12(IND+1,AccountBalance());

if(OrderSelect(0, SELECT_BY_POS)==true)
    {
    SetFloat@12(IND+2,OrderProfit()); 
    }else
    {SetFloat@12(IND+2,0);}

}

void deinit()
{
}
 
 
int start()
  {



SetFloat@12(IND,Close[0]);
SetInt@8(IND,OrdersTotal());
SetFloat@12(IND+1,AccountBalance());


if(OrderSelect(0, SELECT_BY_POS)==true)
    {
    SetFloat@12(IND+2,OrderProfit()); 
    }else
    {SetFloat@12(IND+2,0);}

 
  
  }





Sample





Analysis



Market Information Used:

Series array that contains close prices for each bar


Indicator Curves created:


Indicators Used:



Custom Indicators Used:
c:\ChartPlusChart\SharedVarsDLLv2

Order Management characteristics:
Checks for the total of open orders

Other Features: