Friday, May 27, 2011

Predefined variables

Predefined variables
Ask
Bars
Bid
Close
Digits
High
Low
Open
ITEM
Time
Volume

double Ask
Ask price (price of the Purchaser).
if (iRSI (NULL, 0,14, PRICE_CLOSE, 0) <25)
{
OrderSend (Symbol (), OP_BUY, Many, Ask, 3, Ask-StopLoss * Point, Ask + TakeProfit * Point
"My goal # 2, 3, D'2005 .10.10 00:30, red);
return;
}

int Bars
The number of bars on the chart.
int counter = 1;
for (int i = 1; i <= Bars; i + +)
{
Print (Close [i-1]);
}

double purchases
Bid price (price the seller).
if (iRSI (NULL, 0,14, PRICE_CLOSE, 0)> 75)
{
OrderSend ("EURUSD", OP_SELL, Many, Bid, 3, Bid + StopLoss * Point, bid-TakeProfit * Point
"My goal # 2, 3, D'2005 .10.10 00:30, red);
return (0);
}

double Close []
Returns the closing price of the bar referenced.
int handle, bars = bars;
handle = FileOpen ("file.csv", FILE_CSV | FILE_WRITE, ";");
if (handle> 0)
{
/ / Write table columns headers
FileWrite (handle, "Time, Open, High, Low, Close, Volume);
/ / Write data
for (int i = 0; i FileWrite (handle, Time [i], Open [i], high [i], Low [i], near [i], Tom [i]);
}
FileClose (handle);

int digits
Number of digits after the decimal point for the current symbol.
Print (DoubleToStr (Close [i-1], digits));

High double []
Returns the highest price of the bar referenced.
int handle, bars = bars;
handle = FileOpen ("file.csv", FILE_CSV | FILE_WRITE, ";");
if (handle> 0)
{
/ / Write table columns headers
FileWrite (handle, "Time, Open, High, Low, Close, Volume);
/ / Write data
for (int i = 0; i FileWrite (handle, Time [i], Open [i], high [i], Low [i], near [i], Tom [i]);
}
FileClose (handle);

double Low []
Returns the lowest price on the bar referenced.
int handle, bars = bars;
handle = FileOpen ("file.csv", FILE_CSV | FILE_WRITE, ";");
if (handle> 0)
{
/ / Write table columns headers
FileWrite (handle, "Time, Open, High, Low, Close, Volume);
/ / Erite data
for (int i = 0; i FileWrite (handle, Time [i], Open [i], high [i], Low [i], near [i], Tom [i]);
}
FileClose (handle);

Open double []
Returns the opening price of a bar.
int handle, bars = bars;
handle = FileOpen ("file.csv", FILE_CSV | FILE_WRITE, ";");
if (handle> 0)
{
/ / Write table columns headers
FileWrite (handle, "Time, Open, High, Low, Close, Volume);
/ / Write data
for (int i = 0; i FileWrite (handle, Time [i], Open [i], high [i], Low [i], near [i], Tom [i]);
}
FileClose (handle);
Double Point
Point value for the current scheme.
OrderSend (Symbol (), OP_BUY, Many, Ask, 3,0, Ask + TakeProfit * Point, Red);

Part of the Time []
Open during the bars. Datetime is the number of seconds elapsed from 00:00 January 1, 1970.
int handle, bars = bars;
handle = FileOpen ("file.csv", FILE_CSV | FILE_WRITE, ";");
if (handle> 0)
{
/ / Write table columns headers
FileWrite (handle, "Time, Open, High, Low, Close, Volume);
/ / Write data
for (int i = 0; i FileWrite (handle, Time [i], Open [i], high [i], Low [i], near [i], Tom [i]);
}
FileClose (handle);

Tom double []
Returns the tick count for the bar referenced.
int handle, bars = bars;
handle = FileOpen ("file.csv", FILE_CSV | FILE_WRITE, ";");
if (handle> 0)
{
/ / Write table columns headers
FileWrite (handle, "Time, Open, High, Low, Close, Volume);
/ / Erite data
for (int i = 0; i FileWrite (handle, Time [i], Open [i], high [i], Low [i], near [i], Tom [i]);
}
FileClose (handle);

No comments:

Post a Comment

Powered by Blogger.