Skip to content

Instantly share code, notes, and snippets.

View doppelgunner's full-sized avatar

doppelgunner doppelgunner

View GitHub Profile
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © doppelgunner
//@version=4
study("Algo Trading: Simple 3-EMA Indicator", overlay=true)
ema_fast_length = input(50, "EMA Fast Length", minval=1, group="EMA Settings")
ema_mid_length = input(100, "EMA Mid Length", minval=1, group="EMA Settings")
ema_slow_length = input(200, "EMA Slow Length", minval=1, group="EMA Settings")
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © doppelgunner
//@version=4
strategy("Algo Trading: Simple 3-EMA Strategy", overlay=true, margin_long=100, margin_short=100)
ema_fast_length = input(50, "EMA Fast Length", minval=1, group="EMA Settings")
ema_mid_length = input(100, "EMA Mid Length", minval=1, group="EMA Settings")
ema_slow_length = input(200, "EMA Slow Length", minval=1, group="EMA Settings")
import javax from com.doppelgunner;
class HelloWorld {
public static void main(String[] args) {
System.out.println("EWERERWR");
}
}
@doppelgunner
doppelgunner / gist:c7ab8b982d958245c95f033b0329e17c
Last active November 5, 2017 00:37
Deleting emails on specific folder - Java + GMAIL
//IMPORTANT: check the image attached in comment or below for gmail settings
//sample of method call: deleteEmails("[Gmail]/Sent Mail", username, password);
public static void deleteEmails(String folder, String user, String password) {
String imapHost = "imap.gmail.com";
String storeType = "imaps";
// get the session object
try {
@doppelgunner
doppelgunner / gist:139981625a8aadef67146313542dd9a1
Last active November 5, 2017 00:36
Deleting emails on specific folder - Java
//sample of method call: deleteEmails("[Gmail]/Sent Mail", username, password);
public static void deleteEmails(String folder, String user, String password) {
String imapHost = "imap.gmail.com";
String storeType = "imaps";
// get the session object
try {
Properties properties = new Properties();