Hi
Feel like this is a dumb question but, here goes
How to I change the background colour in the chart screen...
Regards
Shaker
Hi
Feel like this is a dumb question
How to I change the background colour in the chart screen...
_SECTION_BEGIN("Background Color");
BKswitch = ParamToggle("Background Color","On,Off");
OUTcolor = ParamColor("Outer Panel Color",colorLightBlue);
INUPcolor = ParamColor("Inner Panel Upper",colorLightYellow);
INDNcolor = ParamColor("Inner Panel Lower",colorSeaGreen);
TitleColor = ParamColor("Title Color ",ColorRGB(245,245,245));
if (NOT BKswitch)
{
SetChartBkColor(OUTcolor); // color of outer border
SetChartBkGradientFill(INUPcolor,INDNcolor,TitleColor); // color of inner panel
}
_SECTION_END();
No such thing as a dumb question, only dumb if you don't ask
Easiest way is "Tools --> Preferences --> Colors tab --> Background. Click on the "Background" box and change to whatever colour you prefer.
Also possible to change background colour in formula code as well:
http://www.amibroker.com/guide/afl/afl_view.php?id=308
Hi when I changed via above instruction it did this
View attachment 54541
I would like the whole panel to be white. What am I missing here?
Shaker
PS thanks for the help so far
Hi when I changed via above instruction it did this
View attachment 54541
I would like the whole panel to be white. What am I missing here?
Shaker
PS thanks for the help so far
Hi
Will now need to find bar colour selections as they are all black now.
Thanks to all
Shaker
There are four basic relations equity 'e' can have relative to Upper/Lower Donchian:
1 = System ON: e > UpperDonchian AND e > LowerDonchian
2 = System ON: e < UpperDonchian AND e > LowerDonchian (following Breakout)
3 = System OFF: e < UpperDonchian AND e > LowerDonchian (following Breakdown)
4 = System OFF: e < UpperDonchian AND e < LowerDonchian
Hi Cology --
What are the rules that indicate the system is in state 3? How is "breakdown" defined?
Regards,
Howard
1 = System ON: e > UpperDonchian AND e > LowerDonchian = Breakout
2 = System ON: e < UpperDonchian AND e > LowerDonchian (following Breakout)
3 = System OFF: e < UpperDonchian AND e > LowerDonchian (following Breakdown)
4 = System OFF: e < UpperDonchian AND e < LowerDonchian = Breakdown
It is meant to be a very basic Turtle type trend following filter on the equity curve.
The system is in state 3 when:
a) following a "breakdown", i.e., 'e' equity having recently crossed below the LowerDonchian (it was True that 'e < Ref(LLV(e,period),-1)' )
and,
b) the equity curve is currently above the LowerDonchian, but also below the UpperDonchian ... in other words, waiting for a "breakout" to switch the system back "ON".
. . .
I hope that makes sense?
Hi Cology --
Does it help to think about a "shadow equity curve" being formed from "shadow trades" that come from the system's rules, analyze the shadow equity using whatever indicator you want (such as Donchian channel breakout) to use creating "pass" and "dont pass" filter, then combine the shadow trades with the pass/dontpass filter. Something like this (which is for concept only):
// system buy and sell rules
Buy = xxx;
Sell = yyy;
// shadow equity
se = shadowequity = equity();
// analyze shadow equity, treating it as if it is a price series
pass = breakup = se>=HHV(se,20);
dontpass = breakdown = se<=LLV(se,10);
// overwrite the original buy and sell with the filtered buy and sell
buy = buy and pass;
sell = sell or dontpass;
/////////////// end
Or am I missing something?
Best regards,
Howard
Hi Cology --
As written, the On condition is true for those bars where the equity is greater than the highest equity over the previous 100 bars. As soon as the equity drops by any amount, On is no longer True. See if using the Flip function to latch On to True until it is turned to Off helps.
To see the effect, run this as it is, then again with the two lines that call Flip commented out.
// Donchian Filter
On = e > Ref(HHV(e,100),-1);
Off = e < Ref(LLV(e,50),-1);
On = Flip(On,Off);
Off = Flip(Off,On);
Plot(On,"On",colorGreen,styleLine|styleOwnScale);
Buy = Buy AND On;
Sell = Sell OR Off;
Regards,
Howard
Hi Guys,
How do I handle a situation where a variable == {EMPTY}?
I want to say something like the following:
IIf(a=={EMPTY}, x,y);
Hello and welcome to Aussie Stock Forums!
To gain full access you must register. Registration is free and takes only a few seconds to complete.
Already a member? Log in here.