Forum

FileReadDatetime and FileReadDouble do not work

I need to read dates and values from a CSV file but when I print the values in console it is as if they were not assigned or read. This is the file to read: 1971 / 01 / 01 ;- 18.8551 1971 / 01 / 02 ;- 18.8966 1971 / 01 / 03 ;- 18.9375 1971 / 01 / 04 ;- 18.9780 1971 / 01 / 05 ;- 19.179 1971 / 01 / 06

why this expression return me 0?

I have this piece of code in a library and it works fine, I reported it in a script and "maxRiskInPrice" turns out to be 0. " Account balance " is approximately € 9500. void calculateLots(){ int stopLossInPoints = 15 ; int riskPercentage = 5 ; double pipValue = SymbolInfoDouble ( Symbol ()

how to get the low and the high on script release

Hi! I need to get the low and the high of the candle where a script is released. I remember there is a function but i don't remember the name. thanks

the tester stops unexpectedly without errors

https://github.com/CaneRandagio1983/adx-ea as in object, when I test "only" this ea, the strategy tester stops shortly after the start, without errors. executes the moneyManagement.setLotsByStopLossAndRiskPercentage () function, called by the buy () function and then stops could you help me

error: unexpected token '=='

what's wrong in this code? if ( ( (adxStatus == bull) || (adxStatus == neutral) ) && (isADXForSell == true ) ){ adxStatus = bear; isADXReady = true ; } else if ( ( (adxStatus == bear) || (adxStatus == neutral) ) && (isADXForBuy == true ) ){ adxStatus = bull; isADXReady = true

how to flip a buffer?

when I create a buffer with CopyBuffer through iCustom we find the buffer upside down, in practice, if we take a buffer of size 5, the last value will be taken with buffer [4 [. I would like to flip the buffer and take the last value with buffer [0]. By last value I mean the value corresponding to

price action - how to avoid trading these fake pinbar signals?

in the attached images , there are some operations made at a loss. there is The setup of the pinbars but actually it turns out to be false. what filters do you use to avoid operating with these false signals? thank you guys

error: position doesen't exist

trying to change the stoploss of an order, I get the error in question and "error n 4756" i'm using a library downloaded from this site, it's called k_orders, i've changed it a bit believing i'll solve the problem but i still get the error. the library is in the attachment. p.s. I'm trying to move

is it possible to set the colors of the indicators of the expert advisors?

hi, in the expert advisor I am writing there are 2 sma, I would like to make sure that they are colored differently in the strategy tester because they are both red. If possible I would like to show them also when I attach the EA to the chart. there's a way? thanks

indicator for figures pattern

Hi!is there something in the code base or somewhere else to identify the figures automatically? https://www.universoforex.it/new/wp-content/uploads/2020/12/figure-continuazione.jpg