Hi and Seasons greetings to all,
Your help please …
I have a strategy that manually returns a modest income on the 5 Minute Germany 40 during the market open times but despite 179 plus attempts to program it using ProRealTime, I cannot get the program to do what the flowchart does.
synopsis …
Using the change of the PSAR from RED to GREEN – if there is green PSAR and green first bar it is an indicator to set the upper threshold which I’ve called ‘loft’ to (HIGH + 2*POINTSIZE).
Then if any of the following bars, before the next PSAR change is higher than ‘loft’ the program will BUY AT MARKET with a TARGET 20 and STOP 40.
Likewise if the change of the PSAR is from GREEN to RED – if there is a red PSAR and a red first bar it is an indicator to set the lower threshold which I have called ‘dell’ to (LOW – 2*POINTSIZE).
Then if any of the following bars before the next PSAR change is lower than the ‘dell’ variable then the program will SELLSHORT AT MARKET with a TARGET 20 and STOP 40.
######## If the PSAR changes and the TARGET has not been met, then the position is closed so that the next bar can be checked for an indicator. ##If the change of PSAR is not matched with a like coloured first bar then the following bars are ignored till the next PSAR change. #########
I have tried using Multi Time Frames to buy and sell quickly at the PSAR change so that a new PSAR/Bar can be quickly exploited and have had mixed results using arrays to facilitate assigning variables in different timeframes.
I have attached my flowchart and gratefully would welcome any ideas as I have spent so long on this ….. I know the manual method works (but is tedious to stare at the screen for 8 hours).
Any help would be most welcome, thank you in anticipation.