i apologies for my subject topic .Am having trouble with two pivotal logics of my project
here is the code i am to enter a trade if there is a squeeze of bollinger bands and a crossing of two moving averages, fastma or rma and slowma as yma if the second crossing happens during a breakout happens of the bands we enter a trade but if the fast ma is to reach the value of 68 before it reaches the second crossing (tp breach) we councel the entry but look for another trade . And also if there is a loosing trade we are to wait until the fast ma reaches 68 before we can execute the trading conditions. so this is the order of the logic check for previously loosing trade then for the tpbreach this is where my challenge begins after a loosing trade the code nolonger checks for the tp breach .Thank you in advance.
logic in the ontict()
code logic to check for previously loosing tradesif(rma[0] >= 68.0)
if(rma[0] <= 68.0)
... maybe what is needed .. not == as that would mean it has to be the exact value
okay let me try to re exlpain so here is whats happening without a loosing trade am able to check for breach of the tp level which i defined as 68 but after a loosing trade has been detected and the previoustradewasloss flag is turned false at 68 am no longer able to check for a tp breach its a counter loss system it enters trades resulting in more losses
Thank you i , its here it should not be an exact figure so thank you the it worked,
if(rma[0] >= 68.0) //i used (MathFloor(rma[0])>=68.0)
i only needed to change here and it worked thank you, Now i can check for a previouslylosing trade then to check if there was a breach of the tp
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
i apologies for my subject topic .Am having trouble with two pivotal logics of my project
here is the code i am to enter a trade if there is a squeeze of bollinger bands and a crossing of two moving averages, fastma or rma and slowma as yma if the second crossing happens during a breakout happens of the bands we enter a trade but if the fast ma is to reach the value of 68 before it reaches the second crossing (tp breach) we councel the entry but look for another trade . And also if there is a loosing trade we are to wait until the fast ma reaches 68 before we can execute the trading conditions. so this is the order of the logic check for previously loosing trade then for the tpbreach this is where my challenge begins after a loosing trade the code nolonger checks for the tp breach .Thank you in advance.
logic in the ontict()
code logic to check for previously loosing trades