Codes

RGT2 EA for MetaTrader 4

Expert advisor based on Bollinger bands and Rsi. Modified trailing stop system

Forum

How to get a trendline value at a special time ?

hi, i was just wondering if there is a special way to get a trend line value (OBJ_TREND) for example trend line bar with shift=5 or should i use an afine function like y=ax+b ? edit : i didn't search enough. here is the solution double price=ObjectGetValueByShift("MyTrendLine#123", 11);

is there a better way to get the two last low stochastic crosses ?

hey guys :) i discovered mql4 a week ago, i know i am late :p but here is one part of my program : for (n= 0 ;n< 2 ;i++) { if ( iStochastic ( Symbol (), 0 , 5 , 3 , 3 , 0 , 1 ,MODE_MAIN,i) < 20 && iStochastic ( Symbol (), 0 , 5 , 3 , 3 , 0 , 1 ,MODE_SIGNAL,i) < iStochastic ( Symbol (), 0 , 5