Thread: How to code?
View Single Post
  #915 (permalink)  
Old 05-14-2008, 12:11 PM
payback payback is offline
Junior Member
 
Join Date: May 2008
Posts: 26
payback is on a distinguished road
help in programming

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???
Reply With Quote