Marbo
Marbo
Marbo
Added topic Question about a multi-timeframe matrix
Hello guys, I made this test-indicator which checks all of my selected pairs and timeframes for correct history data so I can work with them. This indicator should only check the timeframe when it's necessary. So it doesn't make sense to check the H4
Marbo
Added topic List all files in the Files-folder with FindFileFirst() possible?
Hello, is it possible to list all files of the directory TerminalInfoString(TERMINAL_DATA_PATH)+"\\MQL5\\Files\\" ? I tried to use the script from Metaquotes which is found at the description of FindFileFirst() but that didn't work. I always
Marbo
Added topic Market orders always fail because of error #4756 [Unsupported filling mode]
Hello guys, I plot a line in my chart, called "sl". Then I execute my code and I always receive this [Unsupported filling mode] error #4756. I use almost the same code for my pending orders and they work. But where is the difference between a market
Marbo
Added topic Why is the ATR (indicator and self-calculated) not the same?
Hello guys, I made a little script which shows the ATR(100). I did it by using the built in ATR indicator and by calculating it in a loop. Can someone explain why the results are not the same? void OnStart () {    double bufferATR100[];
Marbo
Added topic I have problems with a buffer
Hey guys, I made this indicator showing me candles where the body size is <0.5 x candle size. These candles are indicated by a dot in the middle of the body. My problem occurs when I am changing the timeframe. There are always some dots somewhere
Marbo
Added topic Message Box with Inputs possible?
Hello, when I press "T" I want to enter trade levels (entry, stoploss, takeprofit). At the moment I can only do it by using OBJ_TEXT . Is this also possible with a Message Box or something similar? I don't use the regular trade window because I use
Marbo
Added topic Question about TRADE_TRANSACTION_ORDER_DELETE in OnTradeTransaction()
Hello guys, when I place a pending order I draw three objects to visualize the SL and TP. If I delete this pending order manually I want that these three objects are deleted automatically. That works fine. My problem is that these objects are also
Marbo
Added topic Using EMAs in a script to filter trends causes #4806 and #4022
Hello, I wanted to make a script which checks the first 100 symbols in the list if they are in an uptrend according to this definition: EMA50 > EMA200 and no price low should touch the EMA50. And these criteria should be met in the last 10
Marbo
Added topic Is there a real bug in MT5? Bars() works fine in a script but not in an indicator...?!
Hey guys, here you find a script and an indicator and both use Bars() . Please have a look at the attached screenshot. The first 10 values are from the script and below them you see the same 10 values but from the indicator. Do I miss something or is
Marbo
Added topic Problem with a simple indicator printing dots on candles
Hello guys, while learning MQL5 I wanted to code an indicator which prints a dot in the middle of the candle body. A green dot if it is a bullish candle and a red dot if it is a bearish candle. Can somebody please tell me what's wrong with my code
Marbo
Added topic CopyFileW()/MoveFileW()/FileMove() problems..
Hello guys, I need some help with File-Management... if some requirements are met, my indicator saves a screenshot. This screenshot can only be saved in MQL5/Files. Now I want to copy or move this screenshot to any free folder. I tried it with
Marbo
Added topic CHARTEVENT_OBJECT_CREATE does not react when an object is drawn
Hello guys, I am very confused. Why does this code not work if I press 'Q' but it works when I draw any object manually? void OnChartEvent ( const int id
Marbo
Added topic ZigZag indicator only drawn in the background?
Hi guys, is there a possibility to modify the code of the ZigZag indicator that the lines are drawn in the background behind the candles? I didn't find a solution how to do it with the buffers. I don't want to set the chart on foreground because I
Marbo
Added topic Hide Zigzag indicator if line chart is active
Hey guys, I permanently use the Zigzag indicator in my template. But when I switch to the line chart I want to hide the Zigzag indicator. I thought about checking the CHART_MODE within the Zigzag code and if the line chart is active I wanted to set
Marbo
Added topic Question about OnCalculate() regarding prev_calculated / rates_total / IndicatorCounted()
Hi guys, I am (still) confused about the things in the headline. I made a little test indicator which plots a dot in the middle of a candle if the candle's size is larger than its ATR(100). Of course the indicator should only work if a new bar is
Marbo
Added topic Syntax problem with Arrays
Hi guys, can anyone tell me how the correct syntax looks like? int timeframes[ 3 ]; if ( _Period == PERIOD_W1 ) timeframes[ 3 ]={ PERIOD_D1 , PERIOD_H4 , PERIOD_H1 }; else if ( _Period == PERIOD_D1 ) timeframes[ 3 ]={ PERIOD_H4 , PERIOD_H1
Marbo
Added topic Scanning 28 symbols in 5 timeframes
Hi all! I made an indicator which scans 28 forex pairs in 5 timeframes for a pre-defined setup. In this example I just scan for a candle's close above the previous candle's high. My question is now if my code is an elegant and efficient way to do it
Marbo
Added topic Change existing chart indicator color in a code?
Hey guys, is it somehow possible to change the color of a moving average in a code? Example: I have a moving average in my chart. Now I want to press a key and the color of the moving average should change
Marbo
Added topic How can I make sure that the latest history data is loaded when using a script?
Hey guys, I made this little test-script: void OnStart () {    Alert ( iTime ( "USDTHB" , 60 , 1 )); } The result was a date from 2018. When I started the script once again, the correct time and date was printed. I know this is because I
Marbo
Added topic Problem with enumerations
Hi, I wanted to code a script which changes the chart-mode (line, bars, candles) of all open charts . When dragging the script into a chart I want to choose the chart-mode with a pulldown-menu. But I don't know how to use the ENUM_CHART_MODE
123