Forum

determine rsi value over time

hello, unfortunately i couldn't find an existing post in the german forum where the following has been discussed before: i need the value of the rsi-indicator at a certain point of time. the indicator is already initialized and everything else works as well. the pattern-examples of copyrates etc

Fill 2D array with prices

Hello can not find my error. Have two 2D arrays, one to be filled with the prices of the HLINES and the other with the prices of the RECTANGLE (first loop for the lines, second loop for the rectangles). Within each loop, a function (HasPriceBeenCheckedRectangles and HasPriceBeenCheckedRectangles)

Delete HLINE

hello, i am facing a problem. as soon as the last executed trade runs into loss (SL hit), an arrow_stop is placed on the chart. the SL is placed at the price of a HLINE (temp_green_down). as soon as the arrow_stop appears on the chart, the prices of the lines are assigned with the double values

EA does not open a position

for ( int i = 0 ; i < ObjectsTotal ( 0 , 0 , - 1 ) ; i++){ string ObjectNameTemp = ObjectName ( 0 , i, - 1 , - 1 ); if ( ObjectGetInteger ( ChartID (), ObjectNameTemp, OBJPROP_TYPE ) == OBJ_HLINE && ObjectGetInteger ( ChartID (), ObjectNameTemp, OBJPROP_COLOR ) == clrBrown ){

rounding problem

double roundUp( double price){ double ticksize = NormalizeDouble ( SymbolInfoDouble ( _Symbol , SYMBOL_TRADE_TICK_SIZE ), _Digits ); price = NormalizeDouble (price, _Digits ); double rest = price - NormalizeDouble (price/ticksize, 0 )*ticksize; rest = NormalizeDouble (rest, _Digits ); if

Count objects

can anyone tell me what mistake I'm making here? this function should return the value of all red objects on the chart. but he just keeps counting and doesn't stop. int counter_zones_red(){ int object_all = ObjectsTotal ( ChartID (), 0 , OBJ_RECTANGLE ); for ( int i = 0 ; i<=object_all; i++){

HLINE Price

Hello, does anyone happen to know how I can delete an HLine at a specific price? I understand about iterating over and deleting all objects, as well as about the name that you can specify to search for and/or delete an object. As far as I know, the object delete function only has the parameters

lines to rectangles

Hello everyone, I have a problem. in my for loop, the bot draws lines at the top and bottom anchor points of the red rectangles that are on the chart. unfortunately lines are set uninterrupted and i only need one above and one below per rectangle. unfortunately I don't know how to end the loop, so

Read Rectangle

Hello, I have a problem. I wrote an indicator that draws different rectangles, on the chart, in green and in red. Now I want my EA to identify these (indicator already implemented) and know which price is eg at the bottom and bottom. Is there a similar program here that can be optimized, or does