mardi 2 août 2016

How to Trade in Diet Odin for Swing Tradin?

I choose to be a EOD based swing trader. Hence i mostly put my orders in the morning hour and revise them in the night after market hours. since I am new to diet Odin, i would like to describe few probable situations below.I request ur guidance on them.

1) -Market at 100.
- i want to be long if it crosses above 110, with a stoploss at 105.

2) -Market at 100
- i want to short if it goes dn to 90, with a stoploss at 95.

3) -market at 110
- i am long since 100.
- i want to sqr. off if it reaches 115
- at the same time i also want to keep a stop loss at 105

4) -market at 100
- i am short since 110.
- i want to sqr. off if it reaches 90
- at the same time i also want to keep a stop loss at 105


Finally, can i put my orders in Odin after market hours for next day session?

Thanks and regards

SDG


How to Trade in Diet Odin for Swing Tradin?

Please help for AFL coding in Ambibroker

To initiate a Buy signal:

1 .The TD REI must be below -40 for six or fewer periods.
2. There must be a lower close than the close of the prior price bar.
3. The open of the next price bar must be less than ,or equal to ,the two prior price highs; and
4. The market must trade above the open and post a high above either one of the prior two price highs.

To Trigger a sell signal:

1 .The TD REI must be above +40 for six fewer periods.
2. There must be a higher close than the close of the prior price bar.
3. The open of the next price bar must be greater than ,or equal to ,the two prior price low; and
4. The market must trade below the open and post a low below either one of the prior two price lows.


Please help for AFL coding in Ambibroker

Is any broker provide Metatrader 4 or 5 for MCX in India???

Hi
In India is any broker provide MT4 or MT5 for trading in Comodity MCX.
I do not want Data Feeder for MT4. Required trade platform MT4.


Is any broker provide Metatrader 4 or 5 for MCX in India???

bletrend1-can somebody convert this mt4 code into afl please

hi friends
can somebody convert this mt4 code into afl please
thanks
//+------------------------------------------------------------------+
//| LabTrend1_v4.mq4 |
//|
//+------------------------------------------------------------------+


#property indicator_chart_window
#property indicator_buffers 4
#property indicator_color1 Blue
#property indicator_color2 Red
#property indicator_color3 Blue
#property indicator_color4 Red
#property indicator_color5 Blue
#property indicator_color6 Red
#property indicator_width1 1
#property indicator_width2 1
#property indicator_width3 2
#property indicator_width4 2

//---- input parameters

extern double Risk = 3; //Price Channel narrowing factor (1..10)
extern int TimeFrame = 0; //TimeFrame in min
extern int Signal = 1; //Display signals mode
extern int ColorBar = 1; //Display color bars mode: 0-no,1-yes
extern int SoundAlertMode = 0; //Sound Alert switch

//---- indicator buffers
double UpTrendSignal[];
double DownTrendSignal[];
double UpTrendBar[];
double DownTrendBar[];
double bsmax[];
double bsmin[];
double time[];
double trend[];

int Length;
bool UpTrendAlert=false, DownTrendAlert=false;
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{
string short_name;
//---- indicator line
IndicatorBuffers(8);
SetIndexBuffer(0,UpTrendSignal);
SetIndexBuffer(1,DownTrendSignal);
SetIndexBuffer(2,UpTrendBar);
SetIndexBuffer(3,DownTrendBar);
SetIndexBuffer(4,bsmax);
SetIndexBuffer(5,bsmin);
SetIndexBuffer(6,time);
SetIndexBuffer(7,trend);
SetIndexStyle(0,DRAW_ARROW);
SetIndexStyle(1,DRAW_ARROW);
SetIndexStyle(2,DRAW_HISTOGRAM);
SetIndexStyle(3,DRAW_HISTOGRAM);
SetIndexArrow(0,108);
SetIndexArrow(1,108);

//---- name for DataWindow and indicator subwindow label
short_name="LabTrend1("+DoubleToStr(Risk,2)+")";
IndicatorShortName(short_name);
SetIndexLabel(0,"UpTrend Signal");
SetIndexLabel(1,"DownTrend Signal");
SetIndexLabel(2,"UpTrend Bar");
SetIndexLabel(3,"DownTrend Bar");
//----
SetIndexEmptyValue(0,0.0);
SetIndexEmptyValue(1,0.0);
SetIndexEmptyValue(2,0.0);
SetIndexEmptyValue(3,0.0);
SetIndexEmptyValue(6,0.0);
Length = 3 + 2*Risk;
SetIndexDrawBegin(0,Length);
SetIndexDrawBegin(1,Length);
SetIndexDrawBegin(2,Length);
SetIndexDrawBegin(3,Length);
//----
return(0);
}
//+------------------------------------------------------------------+
//| LabTrend1_v4 |
//+------------------------------------------------------------------+
int start()
{

//datetime TimeArray[];
int i,shift,y=0,MaxBar,limit,counted_bars=IndicatorCou nted();
double high, low, sum, UpBar,DnBar;

//double bsmax[1],bsmin[1];
//double LowArray[],HighArray[];
if (TimeFrame == 0) TimeFrame = Period();

int Line=0; //Display line mode: 0-no,1-yes

if (Bars-1<Length+1)return(0);
if (counted_bars<0)return(-1);

if (counted_bars>0) counted_bars--;

MaxBar=Bars-1-Length-1;
//limit=Bars-counted_bars-1;
limit=Bars-counted_bars+TimeFrame/Period();

if (limit>MaxBar)
{
for (shift=limit;shift>=MaxBar;shift--)
{
bsmax[Bars-shift]=0.0;
bsmin[Bars-shift]=0.0;
UpTrendSignal[Bars-shift]=0.0;
DownTrendSignal[Bars-shift]=0.0;
UpTrendBar[Bars-shift]=0.0;
DownTrendBar[Bars-shift]=0.0;
}
limit=MaxBar;
}

for(shift=0,y=0;shift<limit;shift++)
{
if (Time[shift]<iTime(NULL,TimeFrame,y)) y++;

double smin = iLow(NULL,TimeFrame,iLowest(NULL,TimeFrame,MODE_LO W,Length,y));
double smax = iHigh(NULL,TimeFrame,iHighest(NULL,TimeFrame,MODE_ HIGH,Length,y));

// Calculation channel stop values
time[shift] = (iTime(NULL,TimeFrame,y)+TimeFrame*60);
bsmax[shift]=smax-(smax-smin)*(33.0-Risk)/100.0;
bsmin[shift]=smin+(smax-smin)*(33.0-Risk)/100.0;
UpTrendSignal[shift] = iLow(NULL,TimeFrame,y) - 0.5*iATR(NULL,TimeFrame,10,y);
DownTrendSignal[shift] = iHigh(NULL,TimeFrame,y) + 0.5*iATR(NULL,TimeFrame,10,y);
}

for(shift=limit;shift>=0;shift--)
{

// Signal area : any conditions to trend determination:
// 1. Price Channel breakout

trend[shift] = trend[shift+1];
if(trend[shift+1]<=0 && Close[shift]>bsmax[shift] && time[shift]==(Time[shift]+Period()*60)) trend[shift]=1;
if(trend[shift+1]>=0 && Close[shift]<bsmin[shift] && time[shift]==(Time[shift]+Period()*60)) trend[shift]=-1;
//if (shift < 100 ) Print("i=",shift," trend=",trend[shift]," ptrend=",trend[shift+1]," p=",price[shift]);
// Drawing area
UpBar=bsmax[shift];
DnBar=bsmin[shift];

UpTrendBar[shift]=EMPTY_VALUE;
DownTrendBar[shift]=EMPTY_VALUE;

if (trend[shift]>0)
{
if (Signal>0)
{
if(trend[shift+1]<0)
{
if (SoundAlertMode>0 && shift==0) PlaySound("alert2.wav");
}
else
UpTrendSignal[shift]=EMPTY_VALUE;
}

if(ColorBar>0)
{
if(Close[shift]>UpBar)
{
UpTrendBar[shift]=High[shift];
DownTrendBar[shift]=Low[shift];
}
else
{
UpTrendBar[shift]=EMPTY_VALUE;
DownTrendBar[shift]=EMPTY_VALUE;
}
}
}
else
UpTrendSignal[shift]=EMPTY_VALUE;

if (trend[shift]<0)
{
if (Signal > 0)
{
if(trend[shift+1]>0)
{
if (SoundAlertMode>0 && shift==0) PlaySound("alert2.wav");
}
else
DownTrendSignal[shift]=EMPTY_VALUE;
}

if(ColorBar>0)
{
if(Close[shift]<DnBar)
{
UpTrendBar[shift]=Low[shift];
DownTrendBar[shift]=High[shift];
}
else
{
UpTrendBar[shift]=EMPTY_VALUE;
DownTrendBar[shift]=EMPTY_VALUE;
}
}
}
else
DownTrendSignal[shift]=EMPTY_VALUE;
}

//----------
string Message;

if ( trend[2]<0 && trend[1]>0 && Volume[0]>1 && !UpTrendAlert)
{
Message = " "+Symbol()+" M"+Period()+": Signal for BUY";
if ( SoundAlertMode>0 ) Alert (Message);
UpTrendAlert=true; DownTrendAlert=false;
}

if ( trend[2]>0 && trend[1]<0 && Volume[0]>1 && !DownTrendAlert)
{
Message = " "+Symbol()+" M"+Period()+": Signal for SELL";
if ( SoundAlertMode>0 ) Alert (Message);
DownTrendAlert=true; UpTrendAlert=false;
}
//----
return(0);
}
//+------------------------------------------------------------------+


bletrend1-can somebody convert this mt4 code into afl please

bletrend -can somebody convert this mt4 code into afl

LabTrend3_v2.mq4

//+------------------------------------------------------------------+
//| LabTrend3_v2.mq4 |
//|
//| http://ift.tt/1YDYvIF |
//+------------------------------------------------------------------+


#property indicator_chart_window
#property indicator_buffers 2
#property indicator_color1 Aqua
#property indicator_color2 Magenta
//---- input parameters

extern int Risk=3; // Sensivity Factor
extern double MoneyRisk=2.0; // Offset Factor

//---- indicator buffers
double UpTrendBuffer[];
double DownTrendBuffer[];
double smax[];
double smin[];
double bsmax[];
double bsmin[];
double trend[];

//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{
string short_name;
//---- indicator line
IndicatorBuffers(7);

SetIndexBuffer(0,UpTrendBuffer);
SetIndexBuffer(1,DownTrendBuffer);

SetIndexStyle(0,DRAW_ARROW);
SetIndexStyle(1,DRAW_ARROW);

SetIndexArrow(0,159);
SetIndexArrow(1,159);
SetIndexBuffer(2,smin);
SetIndexBuffer(3,smax);
SetIndexBuffer(4,bsmin);
SetIndexBuffer(5,bsmax);
SetIndexBuffer(6,trend);

IndicatorDigits(MarketInfo(Symbol(),MODE_DIGITS));
//---- name for DataWindow and indicator subwindow label
short_name="LabTrend3("+Risk+","+MoneyRisk+")";
IndicatorShortName(short_name);
SetIndexLabel(0,"UpTrend Stop");
SetIndexLabel(1,"DownTrend Stop");
//----
SetIndexDrawBegin(0,10);
SetIndexDrawBegin(1,10);
//----
return(0);
}

//+------------------------------------------------------------------+
//| LabTrend3_v1 |
//+------------------------------------------------------------------+
int start()
{
int i,shift,counted_bars=IndicatorCounted();
double Kv=0.382;

int Length=10; // Volatility(ATR) Period


if ( counted_bars > 0 ) int limit=Bars-counted_bars;
if ( counted_bars < 0 ) return(0);
if ( counted_bars ==0 ) limit=Bars-1;

//for(shift=limit;shift>=0;shift--)
//price[shift] = iMA(NULL,0,1,0,0,Price,shift);

//for (shift=Nbars;shift>=0;shift--)
//{
//UpTrendBuffer[shift]=0;
//DownTrendBuffer[shift]=0;
//}

for (shift=limit;shift>=0;shift--)
{
double Range=iATR(Null,0,Length,shift);
double AvgRange=iATR(Null,0,100,shift);

if (Range<AvgRange) Range=AvgRange;

double High=High[Highest(Null,0,MODE_HIGH,9,shift)];
double Low =Low[Lowest(Null,0,MODE_LOW,9,shift)];

smin[shift]=Low + 0.3*(High-Low);
smax[shift]=High- 0.3*(High-Low);

bsmax[shift]=High[shift]+(1.0+0.1*Risk)*Range;
bsmin[shift]=Low[shift]-(1.0+0.1*Risk)*Range;

trend[shift]=trend[shift+1];
if(Close[shift]>smax[shift]) trend[shift]=1;
if(Close[shift]<smin[shift]) trend[shift]=-1;

if(trend[shift]>0)
{
if(Low[shift]-bsmin[shift]<Kv*MoneyRisk*Range) bsmin[shift]=Low[shift]-Kv*MoneyRisk*Range;
if(bsmin[shift]<bsmin[shift+1]) bsmin[shift]=bsmin[shift+1];
}

if(trend[shift]<0)
{
if(bsmax[shift]-High[shift]<Kv*MoneyRisk*Range) bsmax[shift]=High[shift]+Kv*MoneyRisk*Range;
if(bsmax[shift]>bsmax[shift+1]) bsmax[shift]=bsmax[shift+1];
}

if (trend[shift]>0)
{
if (trend[shift+1]<0)
{
bsmin[shift]=Low[shift]-0.1*Risk*Range;
UpTrendBuffer[shift]=bsmin[shift];
}
else
{
UpTrendBuffer[shift]=bsmin[shift];
}
DownTrendBuffer[shift]=EMPTY_VALUE;
}
if (trend[shift]<0)
{
if (trend[shift+1]>0)
{
bsmax[shift]=High[shift]+0.1*Risk*Range;
DownTrendBuffer[shift]=bsmax[shift];
}
else
{
DownTrendBuffer[shift]=bsmax[shift];
}
UpTrendBuffer[shift]=EMPTY_VALUE;
}

}
return(0);


bletrend -can somebody convert this mt4 code into afl

swing trade setup in amibroker

hii could someone please write scanner afl for ami broker as below

[daily ema(60,daily volume) > 300000] and
[daily low > yesterday's daily low] and
[yesterday's daily low > 2 days ago daily low] and
[SMA(10, close) < EMA(30, close)]and
[daily close > daily SMA(10,daily close)]and
[daily close < daily EMA(30,daily close)]and
[weekly sma(10,weekly close) < weekly ema(30,weekly close)]and
[ADX Line(14) > 20.0]and
[close >= 10]


and another scanner as below

[daily ema(60,daily volume) > 300000] and
[sma(10, close) > ema(30, close)]and
[daily close > daily ema(30,daily close)]and
[daily close > daily sma(200,daily close)]and
[weekly sma(10,weekly close) > weekly ema(30,weekly close)]and
[ADX Line(14) > 20.0]and
[close >= 5]

thnxx


swing trade setup in amibroker

Guide me about MCX RT Data feed vendor

Need RT data vendor for Metastock and Amibroker compatible for limited products of MCX:
Energy
Metals non ferrous
Gold/Silver

Data ONLY for Energy will also serve my purpose of the time being! Even data only for Crude and Mini Crude would do!

Need Tick by Tick updation!
5 min candle would do but 1 min preferred.
IEOD data updation everyday after makret is must!

Please guide!


Guide me about MCX RT Data feed vendor