Forum

Colorizing Bars referring to value of custom indcator (value from buffer)

Hello MQL4/5 Community, I have a question regarding a function i want to build into my custom indicator "my indicator". So basically my indicator cointains multiple indicators and summarizes them into the buffer sum[i]

Colorizing bars depending on indicator value

Hello Community, I have built an indicator which sums up the values of the ADX ad Aroon indicator and writes it into an array called "sum[]". Now i want to colorize the bars in the chart depending on the indicator value. Is the indicator value above a certain limit (double ext trendlimit) the bars

Colorzing Bars depending on indicator value

Hello Community, I have built an indicator which sums up the values of the ADX ad Aroon indicator and writes it into an array called "sum[]". Now i want to colorize the bars in the chart depending on the indicator value. Is the indicator value above a certain limit (double ext trendlimit) the bars

Indicator doesnt get displayed

Hello Trading friends, I coded the attached indicator but when i load it to a chart, it doesnt get displayed...i assume that the array is empty but idk why. The idea is the following: First the the difference between aroon up and aroon down signals are calculated. The second indicator is the ADX

Adding a sliding average to StochRSI indicator

Hello altogether, I try to develop myself an EA including the StochRSI indicator. Now i just want to modify the indicator a bit, and want to smooth it a bit by calculating the average, of the last 10 values of the indicator. I tried it with this code of Buffer3[i]: int start() { int

Why do i get expiration of buy/sell limit Orders while EA backtesting ?

Hi Folks, During backtesting of my EA, frequently the opened Sell-limit and Buy-limit orders get closed due to expiration. I dont know why, since i do have the expiration time defined in the code: if ( Bid >(tdn-big_limit* Point ) && Bid <(tdn-small_limit* Point ) && tdo!=empty && tuo==empty &&

EA doesn't open Bustop/Sellstop position for unclear reason

Hi all, i have a little problem with my EA which is not opening buystop/sellstop positions. The condition is quite simple, i also tried it with several indicator just to see if it opens any sellstop/buystop order but it doesnt. THe EA is in the attachement, and the code for opening the positions is

Read out specific value from indicator

Hi all, For my EA i want to read out a specific value from an indicator. For my case, i want to read out the int "changeofTrend" from the super-trend indicator. So whenever "changeofTrend ==1" occurs or is true, i want to the close the last order! The super-trend indicator i use is in the

Specific questions about close command and order open command with supertrend indicator

Dear Traders, I have a question about the attached EA i created. As you can see, the attached EA works with supertrend and halftrend indicator. Whenever supertrend says "TrendUp" and an up arrow occurs, a buy Order will be set, and the same with sell positions in the opposite. Now i have problems

No new order if last ORder was a buy/sell order

Dear Mql5 community, Im working on an EA and i want to put the command: I want the EA to put no new buy order, if the last order was a buy order, and the other way round with the sell order . therefore i found the following command to get the type of last closed order: int LastOrderType() {