luccc / Publications
Forum
Unable to modify the SL
Hi, having some trouble here, not sure if anyone will be able to assist me? Price level was 154.023, 10.8 pips from the attempted SL so not sure why there would be 2024.12.17 23:13:36.741 2024.12.16 16:00:00 failed modify #325 sell 0.2 USDJPY sl: 154.131, tp: 0.000 -> sl: 154.131, tp: 0.000 [
Point & Figure chart
hi id really like to use the point and figure chart as part of my algorithmic trading strategy , is that a possibility and if so how? The same could apply to Heiken Ashi charts or a simple line graph
Wrong values being returned
Hi, im trying to set an SL price below the candlestick low. Ive tested everything separately and it all works yet currently the SLinPips printed for JPY pairs are inaccurate. input double sl_extras = 1 ; //pips string symbol_loop[] = { "GBPUSD" , "EURJPY"
CopyBuffer error
Hi, i want to call the most recent RSI value in the OnTick for multiple symbols although im currently getting the following error: 'CopyBuffer' - no one of the overloads can be applied to the function call. What's the solution? string symbol_loop[] = { "USDJPY" , "EURUSD" , "USDCAD" , "GBPUSD" };
Pivot points converted to zones
hi ive created this perfect pivot point object but im having trouble converting this code into one which creates rectangles to represent zones of potential support and resistance. Ive attached two EAs, one which creates the lines perfectly whilst the other is supposed to make zones but doing so
Issue retrieving data
Hi i have an issue retrieving data. The EA prints the valid figures requested in the print function yet when it comes to the EURUSD, the EA suddenly thinks the low, high, open and close are the same value. In the following picture you'll see the same thing as i've just described yet the candlestick
Settings not changing accordingly
hi, this is rather odd but ive noticed my MT5 settings when running an EA simply does not change when i make certain adjustments. For example, if i change the Bollinger Band Std from 1 to 4, the only chart visual bands do not change as ive seen them do. This is impact the results from when i print
Pivot Points Object
Hi, ive taken this code from online but struggling to adapt it. In the backtest , the pivot points vanish once the week is over. Instead i want to see previous pivot points for it designated week, and for the lines to only be drawn during that week. How can i amend this code? int OnInit () {
Singular to multiple currency pairs
Hi, this is a part of my EA, how can i convert this to a multi-symbol EA? Where's the best place to learn this? datetime old_time; string symbol_loop[] = { "USDJPY" , "EURUSD" , "USDCAD" , "GBPUSD" }; int RSI_Handle; int bb_Handle; #include <Trade/Trade.mqh> CTrade trade;
CopyBuffer Error
I'm trying to convert my EA from trading a singular currency pair to multiple. Before trying to change the number of pairs in use, i didn't have any errors. Since replacing Symbol() with symbol_loop[i], converting the handle into an array, looping the RSI handle in the OnInit and looping the symbols