Thread: How to code?
View Single Post
  #917 (permalink)  
Old 05-14-2008, 08:38 PM
Michel Michel is offline
Senior Member
 
Join Date: Feb 2006
Posts: 519
Michel is on a distinguished road
Quote:
Originally Posted by payback View Post
Hi i was trying to program an ea, and i followed your course (very intresting!)
I know quite well how to program in java and some c++

I was trying to program an ea with brain trend indicators the idea behind is
when brainTrend2stop and braintrend1stop DOTs are present buy (and viceversa)

but if i call the icustom function like this

BuyValueCurrent = iCustom(NULL,TimeFrame,IndicatorName1,NumBars,0,1) ;

i get only the value of the indicator in the present bar
is there a way to make it boolean? i'd like to write a function like

buy=true

BuyCondition = (IndicatorName1=true && IndicatorName2=true);

can someone help please please please???
PHP Code:
BuyCondition BuyValueCurrent1 != EMPTY_VALUE && BuyValueCurrent2 != EMPTY_VALUE
Reply With Quote