Conversation Between TheRumpledOne and ewokuk
Showing Visitor Messages 1 to 4 of 4
-
hmmm everything matches up looking at the comments except reward shows 0.0042 but thats ok I think as its just converted 42 into the same format as the current symbol
i removed the reward section and it works now hmmm, i took the reward shown as 42 to be 42 but i guess its actually 0.0042 thats why it never triggered!
-
damn my trigger doesnt work. it never triggers, i put this at the bottom of the dowork procedure, i think my logic is right but it never seems to get executed (and ive got this on 10 pairs)
if((reward>30) && (Open[0]<goLong) && (Close[0]>=goLong) ) Trigger=1;
if((reward>30) && (Open[0]>goShort) && (Close[0]<=goShort) ) Trigger=2;
if(Trigger>0)
play sound etc
hmmmm
-
hmmmm good point thanks
then i have something that can wake me up at the right time. hope it isnt waking me up every 5 mins.
-
I have been fiddling with your supresHHLL which looks like it may be quite useful. I have been trying to add an alert to it to play a sound when the price crosses the go long or go short lines but havent been able to work out how i could code this. Ive got code for moving average crossovers and various other things but they all look at previous bar vs current bar to see if the cross has been made. In this instance i need to look at the current bar only to see if it crosses the go long line but i cant work out how to do this properly. obviously i can trigger if price equals the line which is easy, but if price should move up 2 pips and jump straight over the line then it will not trigger at all. i believe i can stop it triggering multiple times for the same bar using the code you assisted with before on another indicator so that part shouldnt be a problem.
Any ideas how i might do it or if its even possible? :P