Thank you Grahal.
Can I know at least what is the formula for first condition? Is not a simple AND. Right? I will take it from there (maybe I will not manage but I will try at least).
Import the Demark TD Sequential and set up as a separate Indicator on your Platform … then do as I did using GRAPH.
Here you are, I’ve done it for you … see attached.
You know that code is read at end of a bar and position opened at open of next bar … hence the Long open at 1 bar after the UP Arrow from the TD Seq Indicator.
See at the 3 red arrowheads on attached.
Thank you, Grahal. It looked like I needed to restart the platform… it was kind of stuck! Now, is all working. I know this might not be the topic (but to open a new topic for this would be a bit too much bothering for the forum I guess). The question is in relation to a post of JS (above in this same topic) he said that an indicator can be converted in a backtesting code by simply removing the DRAW and replacing by BUY and SELL ORDERS. I have been trying to find in the forum manual for this but I could not find. Is there any? Thank you in advance. And thank you again
JS was referring to this particular code (as you posted above) in which there is a DrawArrowUP and DrawArrowDown … both of which have a good probability of the start of a profitable Long and Short trade respectively.
So to replace Draw**** by Buy or SellShort needs the Draw**** to be indicative of a change of direction or good probability for a Long or SellShort.
I find it’s best to put // in front of the Draw instruction (i.e. not delete Draw****) then you can refer back to see what the original Draw instruction stated.
Aha… I see. So,
The way I was using before was – taking any code and adding respectively the bearish and bullish action to respectively the buy and sell back test order and it was working sometimes :D. So there is no manual or method to simplify that in the forum? I would be happy to read one in general basis the following simple skeleton:
// Bedingungen zum Einstieg in Long-Positionen
IF NOT LongOnMarket AND IhreBedingungen THEN
BUY 1 CONTRACTS AT MARKET
ENDIF
// Bedingungen zum Ausstieg von Long-Positionen
If LongOnMarket AND IhreBedingungen THEN
SELL AT MARKET
ENDIF
// Bedingungen zum Einstieg in Short-Positionen
IF NOT ShortOnMarket AND IhreBedingungen THEN
SELLSHORT 1 CONTRACTS AT MARKET
ENDIF
// Bedingungen zum Ausstieg aus Short-Positionen
IF ShortOnMarket AND IhreBedingungen THEN
EXITSHORT AT MARKET
ENDIF
// Stops und Targets: Legen Sie hier schützende Stops und Profit Targets fest
What is IhreBedingungen? Is it ‘Conditions‘?? Aha it is, I put it in google Translator! 🙂
Yes the skeleton you show is a good basis.
No there is no manual /pdf describing how to convert an Indicator to a Strategy. Each instance would be slighly different, hence a prescriptive ‘manual’ would be difficult.
Am I understanding your questions correctly?
Yes. Thank you. Grahal. 🙂