Forum

Concatenate string with int and print value of variable

I have string variables (Candle_1, Candle_2 etc..) which when printed returns "Red" or "Green" from a function. eg: When running: Print("**** Candle_1: "+Candle_1); Output is: **** Candle_1: Red I would like to print values in a for loop for multiple candles but cant get the value of the variable

ObjectCreate Exactly On Bid Price Line

I can create a "dot" object just fine, the problem is that the dot shows up around 10 pips below the bid price, I would like for it to show exactly on the bid price line. void DrawDot( string DotName, double LinePrice, color LineColor) { if ( ObjectFind (DotName)< 0 ) { ObjectCreate ( 0

Print Returned Values Of EX4 Indicator In OnTick

I have an ex4 indicator that I downloaded, I would like to create notifications for this indicator when I have a signal (Up or Down). On Data Window I noticed that it has 4 Parameters and these only show values when mouse is hovered on a specific point of the indicator in the bottom Window. Some of

Get Bar Shift From Entry Date/Time To Current Date/Time

I would like to get the number of candles from a specific Date/Time to now. The idea is to get the lowest and highest price from candles since my Date/Time of entry. When I try to subtract my Date/Time from now (TimeCurrent) only the time seems to work: CandleRange = (Now)2020.04.24 15:33.45 -

EA Visual Tester Same Window

I am testing an EA with Visual mode enabled, the issue I am having is that everytime I run a test the visual mode opens in another tab, how can I run it from the same window everytime without manually having to close the previous windows before running a test