Follow us on
Forgot your password?
Forex Forum Register More recent Calendar Advertising Others Help






Register
Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.

From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.

Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
  • Elite Section
    Get access to private discussions, specialized support, indicators and trading systems reported every week.
  • Advanced Elite Section
    For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
See more

Reply
 
Thread Tools Display Modes
  #2281 (permalink)  
Old 03-09-2010, 12:48 AM
Junior Member
 
Join Date: Oct 2009
Posts: 12
Apolofx is on a distinguished road
Hi!

Please, i need that my EA double the order lot if the last order closes by the StopLoss. Please, how i can programe this?


Regards..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!Share this post on Twitter!
Reply With Quote
  #2282 (permalink)  
Old 03-09-2010, 03:06 AM
swagman1's Avatar
Member
 
Join Date: Aug 2006
Location: Earth
Posts: 78
swagman1 is on a distinguished road
Quote:
Originally Posted by nondisclosure007 View Post
Here's the code:
Code:
#property copyright "Copyright © 2010, Nondisclosure007"
#property link      "http://no.link.yet"
#property indicator_chart_window
#property indicator_buffers 2

double floor[];
double ceiling[];
int init()
  {
   IndicatorBuffers(2);
   IndicatorDigits(Digits);   
   SetIndexBuffer(0,floor);   
   SetIndexLabel(0,"Lower Angle");
   SetIndexBuffer(1,ceiling);
   SetIndexLabel(1,"Upper Angle");
   SetIndexEmptyValue(0,0.0);
   SetIndexEmptyValue(1,0.0);
   ArraySetAsSeries(floor,true);
   ArraySetAsSeries(ceiling,true);
   return(0);
  }
int deinit()
  {
   ObjectDelete("LowerAngle");ObjectDelete("UpperAngle");
   return(0);
  }
int start()
  {
   int i, k, limit, counted_bars=IndicatorCounted();
   limit = Bars-counted_bars-1; 
   double varLowMACurrent, varLowMALast, varHighMALast, varHighMACurrent;
   datetime varTime;
   for(i=limit; i>=0; i--)
   {
      floor[i]=0; ceiling[i]=0;
      varLowMACurrent=iMA(NULL,0,34,0,MODE_EMA,PRICE_LOW,i+1);
      varLowMALast=iMA(NULL,0,34,0,MODE_EMA,PRICE_LOW,i+2);
      varHighMACurrent=iMA(NULL,0,34,0,MODE_EMA,PRICE_HIGH,i+1);
      varHighMALast=iMA(NULL,0,34,0,MODE_EMA,PRICE_HIGH,i+2);
      if (ObjectFind("LowerAngle")==-1)
         {ObjectCreate("LowerAngle",OBJ_TRENDBYANGLE,0,Time[i+2],varLowMALast,Time[i+1],varLowMACurrent);}
      ObjectSet("LowerAngle",OBJPROP_STYLE,STYLE_DOT);
      ObjectSet("LowerAngle",OBJPROP_TIME1,Time[i+2]);
      ObjectSet("LowerAngle",OBJPROP_TIME2,Time[i+1]);
      ObjectSet("LowerAngle",OBJPROP_PRICE1,varLowMALast);
      ObjectSet("LowerAngle",OBJPROP_PRICE2,varLowMACurrent);
      ObjectSet("LowerAngle",OBJPROP_COLOR,Magenta);
      ObjectSet("LowerAngle",OBJPROP_RAY,true);       
      floor[i]=ObjectGet("LowerAngle",OBJPROP_ANGLE);
      if (ObjectFind("UpperAngle")==-1)
         {ObjectCreate("UpperAngle",OBJ_TRENDBYANGLE,0,Time[i+2],varHighMALast,Time[i+1],varHighMACurrent);}
      ObjectSet("UpperAngle",OBJPROP_STYLE,STYLE_DOT);
      ObjectSet("UpperAngle",OBJPROP_TIME1,Time[i+2]);
      ObjectSet("UpperAngle",OBJPROP_TIME2,Time[i+1]);
      ObjectSet("UpperAngle",OBJPROP_PRICE1,varHighMALast);
      ObjectSet("UpperAngle",OBJPROP_PRICE2,varHighMACurrent);
      ObjectSet("UpperAngle",OBJPROP_COLOR,Magenta);
      ObjectSet("UpperAngle",OBJPROP_RAY,true);       
      ceiling[i]=ObjectGet("UpperAngle",OBJPROP_ANGLE);
      WindowRedraw();
   }
   return(0);
  }
//+------------------------------------------------------------------+
1. It doesn't re-draw when a new candle starts (or even a new tick comes in).
2. I can't pull the values I need.

Any ideas?
The last bar is counted as zero, next one to the left is 1 and so on. Your code starts at 1 not zero thats why its not updating each tick or new candle.
Change all the i+1 to just i
and i+2 to i+1.

I'm not sure what you mean in point 2.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!Share this post on Twitter!
Reply With Quote
  #2283 (permalink)  
Old 03-09-2010, 05:19 PM
xx3xxx's Avatar
Senior Member
 
Join Date: Sep 2008
Posts: 1,085
xx3xxx is on a distinguished road
got a separate request HERE
(will that be impossible to do , or just easy)


>>
21 minutes pass every hour


click click
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!Share this post on Twitter!
Reply With Quote
  #2284 (permalink)  
Old 03-10-2010, 12:35 AM
nondisclosure007's Avatar
Senior Member
 
Join Date: Apr 2007
Posts: 132
nondisclosure007 is on a distinguished road
Sorry, I posted the wrong code. The one I posted actually works fine.

Here's what I meant to post
Code:
#property copyright "Copyright © 2010, Nondisclosure007"
#property link      "http://no.link.yet"
#property indicator_chart_window
#property indicator_buffers 2

double floor[];
double ceiling[];
int init()
  {
   IndicatorBuffers(2);
   IndicatorDigits(Digits);   
   SetIndexBuffer(0,floor);   
   SetIndexLabel(0,"Lower Angle");
   SetIndexBuffer(1,ceiling);
   SetIndexLabel(1,"Upper Angle");
   SetIndexEmptyValue(0,0.0);
   SetIndexEmptyValue(1,0.0);
   return(0);
  }
int deinit()
  {
   ObjectDelete("LowerAngle");ObjectDelete("UpperAngle");
   return(0);
  }
int start()
  {
   int i, k, limit, floorError, ceilingError, counted_bars=IndicatorCounted();
   limit = Bars-counted_bars-1; 
   double varLowMALast, varHighMALast;
   string thedate;
   for(i=limit; i>=1; i--)
   {
      floor[i]=0; ceiling[i]=0;
      varLowMALast=iMA(NULL,0,34,0,MODE_EMA,PRICE_LOW,i+1);
      varHighMALast=iMA(NULL,0,34,0,MODE_EMA,PRICE_HIGH,i+1);
      if (ObjectFind("LowerAngle")==-1)
         {ObjectCreate("LowerAngle",OBJ_TRENDBYANGLE,0,Time[i+1],varLowMALast);
          ObjectSet("LowerAngle",OBJPROP_ANGLE,330);} 
      ObjectSet("LowerAngle",OBJPROP_TIME1,Time[i+1]);
      ObjectSet("LowerAngle",OBJPROP_PRICE1,varLowMALast);
      ObjectSet("LowerAngle",OBJPROP_ANGLE,330);
      ObjectSet("LowerAngle",OBJPROP_STYLE,STYLE_DOT);
      ObjectSet("LowerAngle",OBJPROP_COLOR,Magenta);
      ObjectSet("LowerAngle",OBJPROP_RAY,true);
      floor[i]=ObjectGetValueByShift("LowerAngle",i);
      if (ObjectFind("UpperAngle")==-1)
         {ObjectCreate("UpperAngle",OBJ_TRENDBYANGLE,0,Time[i+1],varHighMALast);
          ObjectSet("UpperAngle",OBJPROP_ANGLE,30);}
      ObjectSet("UpperAngle",OBJPROP_TIME1,Time[i+1]);
      ObjectSet("UpperAngle",OBJPROP_PRICE1,varHighMALast);
      ObjectSet("UpperAngle",OBJPROP_ANGLE,30);
      ObjectSet("UpperAngle",OBJPROP_STYLE,STYLE_DOT);
      ObjectSet("UpperAngle",OBJPROP_COLOR,Magenta);
      ObjectSet("UpperAngle",OBJPROP_RAY,true);
      ceiling[i]=ObjectGetValueByShift("UpperAngle",i);
      WindowRedraw();
   }
   return(0);
  }
//+------------------------------------------------------------------+
Now when I call floor[i] and ceiling[i] using ObjectGetValueByShift, I get the waaay wrong numbers. Load it and take a look.
Thanks.

Quote:
Originally Posted by swagman1 View Post
The last bar is counted as zero, next one to the left is 1 and so on. Your code starts at 1 not zero thats why its not updating each tick or new candle.
Change all the i+1 to just i
and i+2 to i+1.

I'm not sure what you mean in point 2.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!Share this post on Twitter!
Reply With Quote
  #2285 (permalink)  
Old 03-13-2010, 12:16 PM
Member
 
Join Date: Aug 2008
Location: Chianti...
Posts: 35
l'orsotoro® is on a distinguished road
FRAMAOsma

I've built (changing FRAMA Ehlers) this new indicator in a separate window, there isn't any error but he doesn't show me the OSMA......
Some help?!?!?
Thanks! ;-)


//
//+------------------------------------------------------------------+
// FRAMAOsma
//
// Description: Fractal Adaptive Moving Average - by John Ehlers
// Version 1.1 7/17/2006
//
// Heavily modified and reprogrammed by Matt Kennel (mbkennelfx@gmail.com)
//
// Notes:
// October 2005 Issue - "FRAMA - Fractal Adaptive Moving Average"
// Length will be forced to be an even number. Odd numbers will be bumped up to the
// next even number.
// Formula Parameters: Defaults:
// RPeriod 16

#property copyright "Copyright © 2005, MrPip " // and mbkennel
#property link "http://www.metaquotes.net/"

//---- indicator settings
#property indicator_separate_window
#property indicator_buffers 4
#property indicator_color1 Red
#property indicator_color2 Lime
#property indicator_color3 Red
#property indicator_color4 Lime

//---- buffers
double ExtMapBuffer1[];
double ExtMapBuffer2[];
double ExtMapBuffer3[];
double ExtMapBuffer4[];

extern int RPeriod = 16;
extern double multiplier = 4.6;
extern double signal_multiplier = 2.5;

//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{


//---- 1 additional buffers are used for counting.
IndicatorBuffers(4);

//---- drawing settings
SetIndexBuffer(0,ExtMapBuffer1);
SetIndexStyle(0,DRAW_LINE,STYLE_SOLID,2);
SetIndexShift(0,0);
IndicatorDigits(MarketInfo(Symbol(),MODE_DIGITS));
SetIndexBuffer(1,ExtMapBuffer2);
SetIndexStyle(1,DRAW_LINE,STYLE_SOLID,2);
SetIndexShift(1,0);
SetIndexBuffer(2,ExtMapBuffer3);
SetIndexStyle (2,DRAW_HISTOGRAM);
SetIndexShift(2,0);
SetIndexBuffer(3,ExtMapBuffer4);
SetIndexStyle (3,DRAW_HISTOGRAM);
SetIndexShift(3,0);

//---- initialization done
return(0);
}

int start()
{
int i,k,counted_bars=IndicatorCounted();

if (Bars < RPeriod) return(0);
Comment("Bars : ",Bars);
int maxshift = Bars-RPeriod-1;
int limit= maxshift - counted_bars;
if (limit < 1) limit = 1;

int N = MathFloor(RPeriod/2)*2; // Force N to even number
double frama = Close[maxshift];
double signal = frama;

ExtMapBuffer1[maxshift] = Close[maxshift];
ExtMapBuffer2[maxshift] = Close[maxshift];

for(int shift = limit-1; shift >= 0; shift--) {
double dimension_estimate = DEst(shift,N);

double alpha = MathExp(-multiplier*(dimension_estimate-1.0));
double alphas = MathExp(-signal_multiplier*(dimension_estimate-1.0));

if (alpha > 1.0) alpha = 1.0;
if (alpha < 0.01) alpha = 0.01;
if (alphas > 1.0) alphas = 1.0;
if (alphas < 0.01) alphas = 0.01;

frama = alpha* Close[shift] + (1.0-alpha)* ExtMapBuffer1[shift+1];
signal = alphas * frama + (1.0 - alphas)* ExtMapBuffer2[shift+1];

ExtMapBuffer1[shift] = frama;
ExtMapBuffer2[shift] = signal;


}
return(0);
}


double DEst(int shift, int n) {
//
double R1, R2, R3;
int n2 = n/2;

R3 = Range(shift,n) / n;
R1 = Range(shift,n2) / n2;
R2 = Range(shift+n2,n2) / n2;

return( (MathLog(R1+R2)-MathLog(R3) )* 1.442695 ) ; // log_2(e) = 1.442694




}

double Range(int i, int k) {

return( High[Highest(NULL,0,MODE_HIGH,k,i)] - Low[Lowest(NULL,0,MODE_LOW,k,i)] );

double FRAMAOsma = (ExtMapBuffer1[i]-ExtMapBuffer2[i]);



ExtMapBuffer3[i] = EMPTY_VALUE; ExtMapBuffer4[i] = EMPTY_VALUE;

if(FRAMAOsma > 0) {ExtMapBuffer3[i] = FRAMAOsma; ExtMapBuffer4[i] = EMPTY_VALUE;}
else {ExtMapBuffer3[i] = EMPTY_VALUE; ExtMapBuffer4[i] = FRAMAOsma;}


}

Click the image to open in full size.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!Share this post on Twitter!
Reply With Quote
  #2286 (permalink)  
Old 03-23-2010, 03:14 PM
Junior Member
 
Join Date: Mar 2010
Posts: 13
kevinflynn is on a distinguished road
Simple profitable system needs EA programmer!!!!!

Hi community,

Since I'm not allowed to open a new thread here, I have to post this profitable strategy with the POST REPLY button to this forum to ask any

programmer to do an EA for this system

Would be fine if someone could do an EA from the indicator with the rules as follows

I trade in a H4 timeframe (ANY volitable currency will do!!!!)

If line was green (uptrend) now going red (downtrend)
==> Close buy-order (if still open)
==> Sell with Stoploss from last candles high +10/20 Pips

if line was red (downtrend) now going green (uptrend)
==> Close sell-order (if still open)
==> Buy with Stoploss from last candles low -10/20 Pips

I take my signal ONLY after completion of the current candle!!!
(because the line changes color several times before the current candle is complete)

After sending my order (sell or buy) I wait for the next candle to close THEN I set my Stoploss to Breakeven and let the trade go on until the trend

reverses (the order is closed automatically by rules - see above) or if I see it suits my profit target I close the order manually and take my

profit...

You could set a Takeprofit of let's say 50 to 100 pips (depends on currency) or a Trailing if you would not let the trade close to breakeven...

Hope this helps anyone in doing an EA for this profitable system...!?!? It would be great if this strategy could run on autopilot (EA) when I'm at

work, so it would take more pips out of the market...Thanks

Kevin Flynn

As the attachment seems to be too big to be placed here, here is the download link to the komplett System including templates, indicators and image of rules with stoploss, etc. (just copy download link to your browser and replace hxxp to http !!!)

hxxp://remixshare.com/dl/p6pdb/LineOfDestiny komplett.zip
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!Share this post on Twitter!
Reply With Quote
  #2287 (permalink)  
Old 03-27-2010, 09:11 AM
Junior Member
 
Join Date: Jun 2009
Posts: 2
Rolf Klassen is on a distinguished road
IndexArrow trigged ObjectArrow

Hello!
Im a newbies and ask help with that Problem:
I need that if SetIndexArrow() trigged so also must
ObjectCreate(),ObjectSet()!
Is it possible??
Regards.
Rolf
27.03.2010
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!Share this post on Twitter!
Reply With Quote
  #2288 (permalink)  
Old 03-29-2010, 06:55 AM
arshadFX's Avatar
Senior Member
 
Join Date: Apr 2008
Location: Rawalpindi
Posts: 118
arshadFX is on a distinguished road
Horizontal Lines

Hi

I am looking for an indicator which draw lines with user input xInterval around current price

For example shown in picture current price is 1.3414 and intervel is 10 pips so upper line should @ 1.3420 & 1.3430, and downline should be @ 1.3410 & 1.3400
and if we input 20 pips the line should be @ 1.3430 & 1.3450, down line @ 1.3400 & 1.3380

simple piece of code that will show the logic how to do that will be good

Thanks
Arshed.
Attached Images
File Type: jpg 2010-03-28_202826.jpg (61.8 KB, 79 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!Share this post on Twitter!
Reply With Quote
  #2289 (permalink)  
Old 03-29-2010, 08:49 PM
Junior Member
 
Join Date: Mar 2010
Posts: 1
Quarisma_Sinan is on a distinguished road
I need help about afl to mql4!!! please help to me

I need to mql4 formulas from this afl code!!! Please help me


_SECTION_BEGIN("Earth-2");
VAR2=(High+Low+(Close)*(2))/(4);
B = ((EMA((VAR2-LLV(VAR2,15))/(HHV(Low,15)-LLV(VAR2,15)),2))*(38));
Plot(b, "", 4, 1+4);
bot1 = ((((-1))*(EMA((VAR2-LLV(VAR2,15))/(HHV(Low,15)-LLV(VAR2,15)),2))+0.01)*(38));
Plot(bot1, "", 4, 1+4);
VAR22=((Close-LLV(Low,10))/(HHV(High,10)-LLV(Low,10)))*(100);
VAR33=EMA(VAR22,10);
VAR44=EMA(VAR33,10);
VAR55=(3)*(VAR33)-(2)*(VAR44);
VAR66=EMA(VAR55,5);
BridgeT = (EMA(VAR66,1));
Plot(bridget, "", IIf(bridget > Ref(bridget,-1),colorYellow,colorBlue), 1+4);
Plot(-bridget, "", IIf(bridget > Ref(bridget,-1),colorYellow,colorBlue), 1+4);

trend = (5)*(EMA(((Close-LLV(Low,27))/(HHV(High,27)-LLV(Low,27)))*(100),5))-
(3)*(EMA(EMA(((Close-LLV(Low,27))/(HHV(High,27)-LLV(Low,27)))*(100),5),3))-
EMA(EMA(EMA(((Close-LLV(Low,27))/(HHV(High,27)-LLV(Low,27)))*(100),5),3),2);
Buy1 = Cross(trend,5);
PlotShapes( IIf( Buy1, shapeSmallSquare, shapeNone ), colorGreen, layer = 0, yposition = 0, offset = 3 );
PlotShapes( IIf( Buy1, shapeSmallSquare, shapeNone ),colorGreen, layer = 0, yposition = 0, offset = -4 );

VARA1=((Close>=Ref(Close,-1)) AND (Ref(Close,-1)>=Ref(Close,-2)) AND (Ref(Close,-1)<=Ref(Close,-3))
AND (Ref(Close,-2)<=Ref(Close,-3)) AND ((Ref(Close,-4)>Ref(Close,-2)) OR (Ref(Close,-4)<=Ref(Close,-2))
AND (Ref(Close,-5)>=Ref(Close,-3))) OR (Close>=Ref(Close,-1)) AND (Ref(Close,-1)<=Ref(Close,-2))
AND (Close>=Ref(Close,-2)) AND ((Ref(Close,-3)>Ref(Close,-1)) OR (Ref(Close,-3)<=Ref(Close,-1))
AND (Ref(Close,-4)>=Ref(Close,-2))));
VARA2=LLV(Low,5);
VARA3=HHV(High,5);
VARA4=EMA(((Close-VARA2)/(VARA3-VARA2))*(100),4);
VARA5=EMA((0.66699999)*(Ref(VARA4,-1))+(0.333)*(VARA4),2);
VARA6=(VARA5<24) AND (Open<MA(Close,20));

Buy2 =IIf(VARA1 AND (VARA6),30,0);
Plot(Buy2, "", 8,2+4);
Plot(-Buy2, "", 8,2+4);

_N(Title = StrFormat("\\c02.{{NAME}} | {{DATE}} | {{VALUES}}")+EncodeColor(colorBrightGreen)+WriteIf (Buy2==30,"BuySignal-A","" )+EncodeColor(colorBrightGreen)+WriteIf(Buy1==1," | BuySignal-B",""));


_SECTION_BEGIN("Earth-3");
n = Param("Periods", 14, 5, 25, 1 );
var6=(2*Close+High+Low)/4;
var7=LLV(L,n);
var8=HHV(H,n);
var9=EMA((var6-var7)/(var8-var7)*100,5);
varA=EMA(0.333*Ref(var9,-1)+0.667*var9,3);
UP=Var9;
DOWN=Vara;
barcolor2=
IIf( (Ref(up,-1)>Ref(down,-1) AND Ref(up,-1)>up AND up>down )
OR (Ref(up,-1)<Ref(down,-1) AND Ref(up,-1)<up AND up<down )
, colorBlue,
IIf(up>down,5,4));
Plot(0,"",barcolor2,styleLine);

_SECTION_END();

_SECTION_BEGIN("Earth-1");
EB1 = Close > Ref(Close, -1) AND Ref(Close, -1) > Ref(Close, -2) AND Ref(Close, -1) < Ref(Close, -3) AND IIf(Ref(Close, -3) < Ref(Close, -4), 1, IIf(Ref(Close, -4) < Ref(Close, -5),Ref(Close, -1) < Ref(Close, -4) OR( Ref(Close, -2) < Ref(Close, -4) AND Ref(Close, -3) >= Ref(Close, -5) ),IIf(Ref(Close, -5) < Ref(Close, -6), 1,Ref(Close, -6) < Ref(Close, -7))));
ES1 = Close < Ref(Close, -1) AND Ref(Close, -1) < Ref(Close, -2) AND Ref(Close, -1) > Ref(Close, -3) AND IIf(Ref(Close, -3) > Ref(Close, -4), 1, IIf(Ref(Close, -4) > Ref(Close, -5),Ref(Close, -1) > Ref(Close, -4) OR( Ref(Close, -2) > Ref(Close, -4) AND Ref(Close, -3) <= Ref(Close, -5) ),IIf(Ref(Close, -5) > Ref(Close, -6), 1,Ref(Close, -6) > Ref(Close, -7))));
PlotShapes( IIf( ES1, shapeHollowSmallSquare, shapeNone ), colorOrange, layer = 0, 0, 0 );
PlotShapes( IIf( EB1, shapeUpArrow, shapeNone ), colorBlack, layer = 0, 0, 0 );

_SECTION_END();

_SECTION_BEGIN("Exploration");
LastBar = Cum( 1 ) == LastValue( Cum( 1 ) );
Filter = LastBar;

pfrom = Param("Price From", 0, 0, 1000, 0.5 );
pto = Param("Price To", 1000, 0, 1000, 0.5 );
Minv = Param("Minimum Volume (K)", 500, 0, 1000, 50);
dd = Param("Decimal Digits", 1.2, 1, 1.7, 0.1 );

EB21= Buy1;
EB22=Buy2;
//Filter = Buy AND C>pfrom AND C<pto AND V>1000*Minv;
Color = IIf(Close>Open, colorGreen, colorRed);
bcolor = IIf(Buy1 OR Buy2, colorGreen, 1);
AddTextColumn(WriteIf(EB1,"Buy",WriteIf(ES1,"Sell" ,"")),"Earth-1",colorDefault,-1);
AddTextColumn(WriteIf(Buy1==1,"Buy-A"," "),"Earth-2a",colorDefault,-1);
AddTextColumn(WriteIf(Buy2==30,"Buy-B"," "),"Earth-2b",colorDefault,-1);
AddTextColumn(WriteIf(bridget > Ref(bridget,-1) AND Ref(bridget,-1)<Ref(bridget,-2),"Buy",WriteIf(bridget < Ref(bridget,-1) AND Ref(bridget,-1)>Ref(bridget,-2),"Sell","")),"Earth-2c",colorDefault,-1);
AddTextColumn(WriteIf(barcolor2==colorBlue,"Modara te",WriteIf(barcolor2==4,"Buy",WriteIf(barcolor2== 5,"Sell",""))),"Earth-3",colorDefault,-1);
//AddColumn(Buy, "Buy" , 1.1, bcolor);
//AddColumn(O, "Open", dd, textColor = Color);
//AddColumn(C, "Close", dd, textColor = Color);
//AddColumn(V, "Volume", 1, textColor = Color);
//AddTextColumn(FullName(),"Name");
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!Share this post on Twitter!
Reply With Quote
  #2290 (permalink)  
Old 03-30-2010, 05:10 AM
swagman1's Avatar
Member
 
Join Date: Aug 2006
Location: Earth
Posts: 78
swagman1 is on a distinguished road
Hello,
You may have to pay someone to code that, it will take me months just to figure out what its doing and I dont have time for that. Sure does make some pretty pictures though.
Seeing as it uses Volume, I would be careful using MT4 broker volume as they differ greatly between brokers.
Good luck with that.

Swagman
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!Share this post on Twitter!
Reply With Quote
Reply

Bookmarks

Tags
#include, atr, candle time, CHinGsMAroonCLK, code, coders guru, conditionally, crossover, dll, eli hayun, Eur_harvester.ex4, expert adviser, expert advisor, forex, from index to object, Gann Hilo, higher high, how to code, indicator, I_XO_A_H, kehedge, mechanical trading, metatrader command line, mql4, mt4, MT4-LevelStop-Reverse, OrderReliable.mqh, programming, rectangle tool, strings, time range high low, trading, volty channel stop


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to code this? iscuba11 Metatrader 4 mql 4 - Development course 1 08-03-2007 04:22 PM


All times are GMT. The time now is 07:45 PM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.